|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.io.SimpleStreamableObject
com.threerings.tudey.data.effect.Effect
public class Effect
Represents a stateless event occurring within the scene.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Constructor Summary | |
|---|---|
Effect()
No-arg constructor for deserialization. |
|
Effect(ConfigReference<EffectConfig> config,
int timestamp,
EntityKey target,
Vector2f translation,
float rotation)
Creates a new effect. |
|
| Method Summary | |
|---|---|
int |
getClientOid()
Returns the oid of the client that (may have) prefired the effect. |
ConfigReference<EffectConfig> |
getConfig()
Returns the effect's config reference. |
int |
getExpiry()
Returns the time at which this effect expires. |
void |
getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
Adds the resources to preload for this effect into the provided set. |
float |
getRotation()
Returns the effect's rotation angle. |
EntityKey |
getTarget()
Returns the target of the effect (if any). |
int |
getTimestamp()
Returns the time at which the effect was fired. |
Vector2f |
getTranslation()
Returns a reference to the effect's translation vector. |
void |
init(ConfigManager cfgmgr)
Gives the effect a chance to resolve and cache configuration data after being created or deserialized. |
void |
setClientOid(int clientOid)
Sets the oid of the client that (may have) prefired the effect, or zero for none. |
| Methods inherited from class com.threerings.io.SimpleStreamableObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Effect(ConfigReference<EffectConfig> config,
int timestamp,
EntityKey target,
Vector2f translation,
float rotation)
public Effect()
| Method Detail |
|---|
public void init(ConfigManager cfgmgr)
public void getPreloads(ConfigManager cfgmgr,
PreloadableSet preloads)
public ConfigReference<EffectConfig> getConfig()
public int getTimestamp()
public EntityKey getTarget()
public Vector2f getTranslation()
public float getRotation()
public int getExpiry()
public void setClientOid(int clientOid)
Prefireable
setClientOid in interface Prefireablepublic int getClientOid()
Prefireable
getClientOid in interface Prefireable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||