com.threerings.tudey.config
Class ActorSpriteConfig.RotationSet

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

public static class ActorSpriteConfig.RotationSet
extends DeepObject
implements Exportable

Represents a set of rotation animations.


Field Summary
 ConfigReference<AnimationConfig> left
          The left (counterclockwise) animation reference.
 float rate
          The rotation rate of this animation set.
 ConfigReference<AnimationConfig> right
          The right (clockwise) animation reference.
 
Constructor Summary
ActorSpriteConfig.RotationSet()
           
 
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 rotation 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

rate

@Editable(min=0.0,
          scale=0.017453292519943295)
public float rate
The rotation rate of this animation set.


left

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


right

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

Constructor Detail

ActorSpriteConfig.RotationSet

public ActorSpriteConfig.RotationSet()
Method Detail

getPreloads

public void getPreloads(ConfigManager cfgmgr,
                        PreloadableSet preloads)
Adds the resources to preload for this sprite into the provided set.


resolve

public Animation[] resolve(Model model)
Resolves the rotation set animations for the supplied model.



Copyright © 2011. All Rights Reserved.