com.threerings.tudey.config
Class ActorSpriteConfig.QuadMovement

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.tudey.config.ActorSpriteConfig.MovementSet
          extended by com.threerings.tudey.config.ActorSpriteConfig.QuadMovement
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ActorSpriteConfig

public static class ActorSpriteConfig.QuadMovement
extends ActorSpriteConfig.MovementSet

A movement set with separate animations for the four directions.


Field Summary
 ConfigReference<AnimationConfig> backward
          The backward animation reference.
 ConfigReference<AnimationConfig> forward
          The forward animation reference.
 ConfigReference<AnimationConfig> left
          The left animation reference.
 ConfigReference<AnimationConfig> right
          The right animation reference.
 
Fields inherited from class com.threerings.tudey.config.ActorSpriteConfig.MovementSet
speed
 
Constructor Summary
ActorSpriteConfig.QuadMovement()
           
 
Method Summary
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this sprite into the provided set.
 Animation[] resolve(Model model)
          Resolves the movement set animations for the supplied model.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

forward

@Editable(nullable=true)
public ConfigReference<AnimationConfig> forward
The forward animation reference.


left

@Editable(nullable=true)
public ConfigReference<AnimationConfig> left
The left animation reference.


backward

@Editable(nullable=true)
public ConfigReference<AnimationConfig> backward
The backward animation reference.


right

@Editable(nullable=true)
public ConfigReference<AnimationConfig> right
The right animation reference.

Constructor Detail

ActorSpriteConfig.QuadMovement

public ActorSpriteConfig.QuadMovement()
Method Detail

getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Description copied from class: ActorSpriteConfig.MovementSet
Adds the resources to preload for this sprite into the provided set.

Specified by:
getPreloads in class ActorSpriteConfig.MovementSet

resolve

public Animation[] resolve(Model model)
Description copied from class: ActorSpriteConfig.MovementSet
Resolves the movement set animations for the supplied model.

Specified by:
resolve in class ActorSpriteConfig.MovementSet


Copyright © 2011. All Rights Reserved.