|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.AbstractPiece us.asciiroth.client.effects.AbstractEffect us.asciiroth.client.effects.InFlightItem
public class InFlightItem
Constructor Summary | |
---|---|
InFlightItem(Item item,
Direction direction,
Piece originator)
Constructor. |
Method Summary | |
---|---|
Direction |
getDirection()
Get the direction this item is currently flying. |
Item |
getItem()
Get the item that is currently in flight. |
Piece |
getOriginator()
The last piece that touches a flying item is essentially the originator: a piece that can't be hurt by the flying thing because it is its own ammunition. |
Symbol |
getSymbol()
AbstractPiece does not support different rendering outside as opposed to inside. |
boolean |
is(int flag)
Does this piece have the indicated bit flag? |
boolean |
not(int flag)
Does this piece not have the indicated flag? |
void |
onFrame(Context ctx,
Cell cell,
int frame)
Animation callback, executed once each frame for each piece animated on the board. |
boolean |
randomSeed()
Should this animation start with a randomly seeded number as its first frame? For some animations, this can prevent all presentations of the piece on the board executing the same animation frame at the same time. |
void |
setDirection(Direction direction)
Set the direction this item should continue to fly. |
void |
setItem(Item item)
Set the item that is currently in flight. |
void |
setOriginator(Piece originator)
Set the piece that originally threw or shot this item. |
Methods inherited from class us.asciiroth.client.effects.AbstractEffect |
---|
isAboveAgent |
Methods inherited from class us.asciiroth.client.core.AbstractPiece |
---|
getColor, getName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface us.asciiroth.client.core.Piece |
---|
getColor, getName |
Constructor Detail |
---|
public InFlightItem(Item item, Direction direction, Piece originator)
item
- direction
- originator
- Method Detail |
---|
public Direction getDirection()
public Item getItem()
public Piece getOriginator()
public Symbol getSymbol()
AbstractPiece
getSymbol
in interface Piece
getSymbol
in class AbstractPiece
public boolean is(int flag)
Piece
is
in interface Piece
is
in class AbstractPiece
Flags
public boolean not(int flag)
Piece
not
in interface Piece
not
in class AbstractPiece
Flags
public void onFrame(Context ctx, Cell cell, int frame)
Animated
onFrame
in interface Animated
public boolean randomSeed()
Animated
randomSeed
in interface Animated
public void setDirection(Direction direction)
direction
- public void setItem(Item item)
item
- public void setOriginator(Piece originator)
originator
-
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark