public class Attribute extends Object
Example:
final Attribute vitality = new Attribute(); vitality.set(1); vitality.increase(2); print(vitality.get()); // print 3
Constructor and Description |
---|
Attribute()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
get()
Get attribute value.
|
void |
increase(int step)
Increase attribute with the specified step.
|
void |
set(int value)
Set attribute value.
|
Copyright © 2016 Byron 3D Games Studio. All rights reserved.