|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT> cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule<UT2004Bot> cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric.Animations
public class Animations
Module wrapping animation playing.
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensomotoricModule |
---|
act, worldView |
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
agent, controller, eventBus, log |
Constructor Summary | |
---|---|
Animations(UT2004Bot agent)
|
|
Animations(UT2004Bot agent,
Logger log)
|
Method Summary | |
---|---|
HashSet<AnimType> |
getAvailableAnimations()
Returns all available animations for our character. |
HashSet<AnimType> |
getAvailableAnimations(CharacterType charType)
Returns all available animations for a character. |
CharacterType |
getCurrentCharacter()
Returns current character type. |
AnimType |
getCurrentPlayedAnimation()
Returns current bot anim thas is currently being played. |
AnimType |
getPlayerAnimation(Player player)
Returns current animation of input player. |
boolean |
hasAnim(AnimType anim)
Returns true if our current character can play input animation. |
boolean |
hasAnim(AnimType anim,
CharacterType charType)
Returns true if input character can play input animation. |
void |
playAnimation(AnimType animation)
Plays input animation on character once! Note that movement animations may override animation played this way! |
void |
playAnimation(AnimType animation,
boolean bLoop)
Plays input animation on character. |
void |
playAnimationSafe(AnimType animation,
boolean bLoop)
Plays input animation on character only if the character IS NOT playing this animation allready. |
void |
stopAnimation()
Stops animation and replaces it with "standard" one. |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
---|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Animations(UT2004Bot agent, Logger log)
public Animations(UT2004Bot agent)
Method Detail |
---|
public AnimType getPlayerAnimation(Player player)
player
-
public boolean hasAnim(AnimType anim)
anim
-
public boolean hasAnim(AnimType anim, CharacterType charType)
anim
-
public AnimType getCurrentPlayedAnimation()
public HashSet<AnimType> getAvailableAnimations(CharacterType charType)
charType
-
public HashSet<AnimType> getAvailableAnimations()
charType
-
public void playAnimation(AnimType animation, boolean bLoop)
animation
- bLoop
- public void playAnimationSafe(AnimType animation, boolean bLoop)
animation
- bLoop
- public void playAnimation(AnimType animation)
animation
- public void stopAnimation()
public CharacterType getCurrentCharacter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |