com.theoworlds.builder.CharacterLogicRandom

com.theoworlds.builder.CharacterLogicRandom

CharacterLogicRandom class - character logic that makes the character do random actions - usefull for “monsters” in game and bots in mult-iuser applications

Version

1.0

Author

© TheoWorlds.com, 2007-2009.

Summary
com.theoworlds.builder.CharacterLogicRandomCharacterLogicRandom class - character logic that makes the character do random actions - usefull for “monsters” in game and bots in mult-iuser applications
Functions
CharacterLogicRandom
startThinkingthe function that makes the character to start “thinking” (execute the character logic).
stopThinkingstop the “thinking
thinkingLoopthe “thinking” function

Functions

CharacterLogicRandom

public function CharacterLogicRandom(character: Character,
autoStart: Boolean,
initObj: Object)

startThinking

public function startThinking():Void

the function that makes the character to start “thinking” (execute the character logic).  Was used for bots.  Not used right now.

stopThinking

public function stopThinking():Void

stop the “thinking

thinkingLoop

private function thinkingLoop(_this: CharacterLogic):Void

the “thinking” function

CharacterLogic class - stores the character logic.
public function CharacterLogicRandom(character: Character,
autoStart: Boolean,
initObj: Object)
public function startThinking():Void
the function that makes the character to start “thinking” (execute the character logic).
public function stopThinking():Void
stop the “thinking
private function thinkingLoop(_this: CharacterLogic):Void
the “thinking” function
Close