com.threerings.tudey.config
Class ActorSpriteConfig.SingleMovement

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

public static class ActorSpriteConfig.SingleMovement
extends ActorSpriteConfig.MovementSet

A movement set with a single animation.


Field Summary
 ConfigReference<AnimationConfig> animation
          The movement animation reference.
 
Fields inherited from class com.threerings.tudey.config.ActorSpriteConfig.MovementSet
speed
 
Constructor Summary
ActorSpriteConfig.SingleMovement()
           
 
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

animation

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

Constructor Detail

ActorSpriteConfig.SingleMovement

public ActorSpriteConfig.SingleMovement()
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.