com.b3dgs.lionengine.game
Class Attribute

java.lang.Object
  extended by com.b3dgs.lionengine.game.Attribute

public class Attribute
extends java.lang.Object

Describe an attribute (vitality, agility...). For fast and light development, it is recommended to make public final instanciation, as it already purposes set & get functions.


Constructor Summary
Attribute()
          Create a new blank attribute.
 
Method Summary
 int get()
          Get value.
 void set(int value)
          Set value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Create a new blank attribute.

Method Detail

set

public void set(int value)
Set value.

Parameters:
value - value.

get

public int get()
Get value.

Returns:
value.