com.theoworlds.builder.settings.CharacterSettings |
CharacterSettings class stores the settings of a Character object
1.0
© TheoWorlds.com, 2007-2009.
| com. | CharacterSettings class stores the settings of a Character object |
| Variables | |
| netID | net id of the character -- from server. |
| chatColor | predefined chat message color border. |
| displayName | the name of the character displayed on the screen (can be different from nickname, id) |
| cCurrentTileElevation | the elevation of the current tile (elevation is the character own elevation -- can be different) |
| destinationTile | the coordinates of the tile the characters moves to |
| currentActionName | -- the name of the current action |
| isICharacter | is that character controllable |
| direction | the direction of the character |
| phase | the animation phase of the character |
| speed | the character speed. |
| selectable | is the character selectable |
| brainType | “brain” type (the character logic class) //OPT add some constants for the names? |
| brainAutoStart | auto--start |
| brainInitObj | |
| dressedClothesNames | looks like {name1:”name1” [,name2:”name2”]}. |
| actions | more info in MapObject._actions |
| layers | XML node that stores the layers |
| Functions | |
| CharacterSettings | var forMessage is true in cases, when CharacterSettings is used for messages to server |
| dressedClothesNamesFromString | |
| dressedClothesNamesToString | |
| _dressedClothesToString | String { clothesName |
| _dressedClothesFromString | converts from String into an Object. |
| Properties | |
| TYPE_SERVER_VARIABLES | |
| TYPE_MOVING_CORRECTION | |
| TYPE_MOVE |
public var actions: Object
more info in MapObject._actions
net id of the character -- from server.
public var netID: String
predefined chat message color border.
public var chatColor: Number
the name of the character displayed on the screen (can be different from nickname, id)
public var displayName: String
the elevation of the current tile (elevation is the character own elevation -- can be different)
public var cCurrentTileElevation: Number
the coordinates of the tile the characters moves to
public var destinationTile: Point
-- the name of the current action
public var currentActionName: String
is that character controllable
public var isICharacter: Boolean
the direction of the character
public var direction: Number
the animation phase of the character
public var phase: Number
the character speed.
public var speed: Number
is the character selectable
public var selectable: Boolean
“brain” type (the character logic class) //OPT add some constants for the names?
public var brainType: String
auto--start
public var brainAutoStart: Boolean
public var brainInitObj: Object
looks like {name1:”name1” [,name2:”name2”]}.
public var dressedClothesNames: Object
more info in MapObject._actions
public var actions: Object
name{name:String, [attributes:*]}
private var _actions: Object
XML node that stores the layers
public var layers: XMLNode
var forMessage is true in cases, when CharacterSettings is used for messages to server
function CharacterSettings( type: Number )
public static function dressedClothesNamesFromString( str: String ):Object
public static function dressedClothesNamesToString( o: Object ):String
String { clothesName
function _dressedClothesToString():String
converts from String into an Object.
function _dressedClothesFromString( str: String ):Void
public static function get TYPE_SERVER_VARIABLES():Number
public static function get TYPE_MOVING_CORRECTION():Number
public static function get TYPE_MOVE():Number