|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xistrat.bean.FigurData
public class FigurData
bulk data of a piece
Field Summary | |
---|---|
boolean |
alive
|
boolean |
isKing
|
int |
location
|
int |
nameAsInt
|
int |
party
|
int |
stand
|
Constructor Summary | |
---|---|
FigurData()
of course in principle u could define non-constant parameters as well (being periodic) ... |
|
FigurData(int location,
int stand,
boolean alive,
int nameAsInt,
int party,
boolean isKing)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
in Object is protected access ... |
java.lang.String |
getAlive()
|
int |
getLocation()
|
java.lang.String |
getName()
|
int |
getParty()
|
java.lang.String |
getRole()
|
int |
getStand()
|
boolean |
isAlive()
|
boolean |
isReachingFor(int pos,
FigurData[] _figures,
FastFace fastFace,
int index)
|
void |
kill()
|
void |
setAlive(boolean alive)
|
void |
setFLocation(int location,
FastFace fastFace)
stand will be in [0, faces - 1] |
void |
setLocation(int location,
FastFace fastFace)
Deprecated. |
void |
updateData(int _stand)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int location
public int stand
public boolean alive
public int nameAsInt
public int party
public boolean isKing
Constructor Detail |
---|
public FigurData()
for example distInEdges alternating a and (poly-a) would be cool, givig straight lines for odd and even poly
public FigurData(int location, int stand, boolean alive, int nameAsInt, int party, boolean isKing)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean isReachingFor(int pos, FigurData[] _figures, FastFace fastFace, int index)
public java.lang.String getName()
public int getStand()
public void setLocation(int location, FastFace fastFace)
location
- is in [0, polygons - 1] in case it's not D or Epublic void setFLocation(int location, FastFace fastFace)
location
- is in [0, faces - 1] in case it's not D or Epublic int getLocation()
public boolean isAlive()
public java.lang.String getAlive()
public java.lang.String getRole()
public int getParty()
public void kill()
public void setAlive(boolean alive)
public void updateData(int _stand)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |