All Packages Class Hierarchy This Package Previous Next Index
Class eduni.simanim.Anim_param
java.lang.Object
|
+----eduni.simanim.Anim_param
- public class Anim_param
- extends Object
An animation parameter, parameters are used to display
data relating to its parent entity during an animation.
-
enum_type
-
-
HIDDEN
- Display type: Don't display.
-
NAME
- Display type: Show parameter's name only.
-
NAME_VALUE
- Display type: Show both the parameter's name and its value.
-
STATE
- Display type: Show as the entity's bitmap.
-
VALUE
- Display type: Show value only.
-
Anim_param(String, int, Param_type)
- Constructor, with co-ordinates defaulting to (0, 0).
-
Anim_param(String, int, Param_type, int, int)
- Constructor, with Param_type object and (x, y) co-ordinate.
-
Anim_param(String, int, String)
- Constructor, with co-ordinates defaulting to (0, 0).
-
Anim_param(String, int, String, int, int)
- Constructor, with (x, y) co-ordinate.
-
get_intval()
- Get integer value of parameter.
-
get_value()
- Get string value of parameter.
-
set_value(int)
- Set value of parameter to integer.
-
set_value(String)
- Set value of parameter to string.
HIDDEN
public static final int HIDDEN
- Display type: Don't display.
STATE
public static final int STATE
- Display type: Show as the entity's bitmap.
VALUE
public static final int VALUE
- Display type: Show value only.
NAME
public static final int NAME
- Display type: Show parameter's name only.
NAME_VALUE
public static final int NAME_VALUE
- Display type: Show both the parameter's name and its value.
enum_type
public static final String enum_type[]
Anim_param
public Anim_param(String name,
int type,
String value,
int x,
int y)
- Constructor, with (x, y) co-ordinate.
- Parameters:
- name - The parameter's name
- type - One of the display types above
- value - The initial value of the parameter
- x - The X co-ordinate of the parameter relative to the left of
its parent entity.
- y - The Y co-ordinate of the parameter relative to the top of
its parent entity.
Anim_param
public Anim_param(String name,
int type,
String value)
- Constructor, with co-ordinates defaulting to (0, 0).
- Parameters:
- name - The parameter's name
- type - One of the display types above
- value - The initial value of the parameter
Anim_param
public Anim_param(String name,
int type,
Param_type ptype,
int x,
int y)
- Constructor, with Param_type object and (x, y) co-ordinate.
- Parameters:
- name - The parameter's name
- type - One of the display types above
- ptype - The parameter type object
- x - The X co-ordinate of the parameter relative to the left of
its parent entity.
- y - The Y co-ordinate of the parameter relative to the top of
its parent entity.
Anim_param
public Anim_param(String name,
int type,
Param_type ptype)
- Constructor, with co-ordinates defaulting to (0, 0).
- Parameters:
- name - The parameter's name
- type - One of the display types above
- value - The initial value of the parameter
set_value
public void set_value(String val)
- Set value of parameter to string.
- Parameters:
- val - The value of the parameter
set_value
public void set_value(int val)
- Set value of parameter to integer.
Note that it sets the value to the ith string value.
- Parameters:
- val - The value of the parameter
get_value
public String get_value()
- Get string value of parameter.
get_intval
public int get_intval()
- Get integer value of parameter.
All Packages Class Hierarchy This Package Previous Next Index