public class Animations extends SensomotoricModule<UT2004Bot>
act, worldViewagent, controller, eventBus, log| Constructor and Description |
|---|
Animations(UT2004Bot agent) |
Animations(UT2004Bot agent,
Logger log) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
cleanUp, getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toStringpublic Animations(UT2004Bot agent)
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()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.