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.


Variable Index

 o enum_type
 o HIDDEN
Display type: Don't display.
 o NAME
Display type: Show parameter's name only.
 o NAME_VALUE
Display type: Show both the parameter's name and its value.
 o STATE
Display type: Show as the entity's bitmap.
 o VALUE
Display type: Show value only.

Constructor Index

 o Anim_param(String, int, Param_type)
Constructor, with co-ordinates defaulting to (0, 0).
 o Anim_param(String, int, Param_type, int, int)
Constructor, with Param_type object and (x, y) co-ordinate.
 o Anim_param(String, int, String)
Constructor, with co-ordinates defaulting to (0, 0).
 o Anim_param(String, int, String, int, int)
Constructor, with (x, y) co-ordinate.

Method Index

 o get_intval()
Get integer value of parameter.
 o get_value()
Get string value of parameter.
 o set_value(int)
Set value of parameter to integer.
 o set_value(String)
Set value of parameter to string.

Variables

 o HIDDEN
 public static final int HIDDEN
Display type: Don't display.

 o STATE
 public static final int STATE
Display type: Show as the entity's bitmap.

 o VALUE
 public static final int VALUE
Display type: Show value only.

 o NAME
 public static final int NAME
Display type: Show parameter's name only.

 o NAME_VALUE
 public static final int NAME_VALUE
Display type: Show both the parameter's name and its value.

 o enum_type
 public static final String enum_type[]

Constructors

 o 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.
 o 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
 o 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.
 o 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

Methods

 o set_value
 public void set_value(String val)
Set value of parameter to string.

Parameters:
val - The value of the parameter
 o 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
 o get_value
 public String get_value()
Get string value of parameter.

 o get_intval
 public int get_intval()
Get integer value of parameter.


All Packages  Class Hierarchy  This Package  Previous  Next  Index