|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.asciiroth.client.core.AnimationProxy
public class AnimationProxy
A proxy for a piece at a given position, which introduces the state necessary to track the animation of pieces on the board.
| Constructor Summary | |
|---|---|
AnimationProxy(int x,
int y,
Animated piece)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
void |
frame(Context ctx)
Execute on animation frame, for the piece at this location. |
int |
hashCode()
|
boolean |
proxyFor(int x,
int y,
java.lang.Object piece)
Test if this proxy is for a piece instance at the given location. |
void |
setXY(int x,
int y)
Set the X/Y position of this proxy (an optimization so that animated pieces can be moved without destroying and creating a proxy). |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimationProxy(int x,
int y,
Animated piece)
x - y - piece - | Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void frame(Context ctx)
ctx - public int hashCode()
hashCode in class java.lang.Object
public boolean proxyFor(int x,
int y,
java.lang.Object piece)
x - x position of the piecey - y position of the piecepiece - a piece that is animated
public void setXY(int x,
int y)
x - the new X position of the animationy - the new Y position of the animation
|
0.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
© 2009 Alx Dark