com.threerings.tudey.config
Class ActorSpriteConfig.Moving

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

public static class ActorSpriteConfig.Moving
extends ActorSpriteConfig.Default

A sprite with idle and movement animations.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.tudey.config.ActorSpriteConfig
ActorSpriteConfig.Default, ActorSpriteConfig.MovementSet, ActorSpriteConfig.Moving, ActorSpriteConfig.QuadMovement, ActorSpriteConfig.RotationSet, ActorSpriteConfig.SingleMovement, ActorSpriteConfig.State, ActorSpriteConfig.StatefulEntry, ActorSpriteConfig.WeightedAnimation
 
Field Summary
 float attachedScale
          A scale to apply to attached models.
 ActorSpriteConfig.WeightedAnimation[] idles
          The idle animations for the sprite.
 ActorSpriteConfig.MovementSet[] movements
          The sets of movement animations for the sprite.
 ActorSpriteConfig.RotationSet[] rotations
          The sets of rotation animations for the sprite.
 float scale
          A scale to apply to the sprite (affects the movement animation speeds).
 
Fields inherited from class com.threerings.tudey.config.ActorSpriteConfig
creationTransient, destructionTransient, floorFlags, floorMask, model
 
Constructor Summary
ActorSpriteConfig.Moving()
           
 
Method Summary
 float[] getIdleWeights()
          Returns the cached idle weight array.
 ActorSprite.Implementation getImplementation(TudeyContext ctx, Scope scope, ActorSprite.Implementation impl)
          Creates or updates a sprite implementation for this configuration.
 void getPreloads(ConfigManager cfgmgr, PreloadableSet preloads)
          Adds the resources to preload for this sprite into the provided set.
 void invalidate()
          Invalidates any cached data.
 
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

scale

@Editable(min=0.0,
          step=0.01,
          hgroup="s")
public float scale
A scale to apply to the sprite (affects the movement animation speeds).


attachedScale

@Editable(min=0.0,
          step=0.01,
          hgroup="s")
public float attachedScale
A scale to apply to attached models.


idles

@Editable
public ActorSpriteConfig.WeightedAnimation[] idles
The idle animations for the sprite.


movements

@Editable
public ActorSpriteConfig.MovementSet[] movements
The sets of movement animations for the sprite.


rotations

@Editable
public ActorSpriteConfig.RotationSet[] rotations
The sets of rotation animations for the sprite.

Constructor Detail

ActorSpriteConfig.Moving

public ActorSpriteConfig.Moving()
Method Detail

getIdleWeights

public float[] getIdleWeights()
Returns the cached idle weight array.


getPreloads

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

Overrides:
getPreloads in class ActorSpriteConfig

getImplementation

public ActorSprite.Implementation getImplementation(TudeyContext ctx,
                                                    Scope scope,
                                                    ActorSprite.Implementation impl)
Description copied from class: ActorSpriteConfig
Creates or updates a sprite implementation for this configuration.

Overrides:
getImplementation in class ActorSpriteConfig.Default

invalidate

public void invalidate()
Description copied from class: ActorSpriteConfig
Invalidates any cached data.

Overrides:
invalidate in class ActorSpriteConfig


Copyright © 2011. All Rights Reserved.