|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.MessageObjects.MessageObject
cz.cuni.pogamut.MessageObjects.DominationPoint
public class DominationPoint
Domination point contains following important properties:
Field Summary | |
---|---|
int |
controller
Which team controls this point. |
private int |
hashCode
hash code for astar |
private boolean |
hashComputed
thanks to weird hashcode flag if hashcode has been specified |
Triple |
location
Location of navpoint |
boolean |
reachable
Is there no obstacle in way bot-navpoint = can bot run there directly? |
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject |
---|
ID, type, types, UnrealID, visible |
Constructor Summary | |
---|---|
DominationPoint()
|
|
DominationPoint(int ID,
java.lang.String UnrealID,
Triple location,
boolean reachable,
boolean visible,
int controller,
int hashCode)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
clone object - for hard copying |
boolean |
diff(MessageObject old)
change this object that all properties that are same as old will be set to null or 0 or similar. |
private int |
getHashCode()
|
Triple |
getLocation()
|
int |
hashCode()
|
boolean |
hasID()
|
boolean |
isReachable()
|
boolean |
isVisible()
|
void |
setLocation(Triple newLocation)
|
java.lang.String |
toString()
|
void |
update(MessageObject newMsgObj)
Writes non-null information from newMsgObj to current one. |
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject |
---|
equals, getID, getType, getUnrealID, getVisibility, setID, setType, setUnrealID, setVisible |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int controller
public Triple location
private boolean hashComputed
private int hashCode
public boolean reachable
Constructor Detail |
---|
public DominationPoint(int ID, java.lang.String UnrealID, Triple location, boolean reachable, boolean visible, int controller, int hashCode)
public DominationPoint()
Method Detail |
---|
public boolean hasID()
hasID
in class MessageObject
private int getHashCode()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
MessageObject
clone
in class MessageObject
public Triple getLocation()
public void setLocation(Triple newLocation)
public boolean isReachable()
public boolean isVisible()
isVisible
in class MessageObject
public boolean diff(MessageObject old)
MessageObject
diff
in class MessageObject
old
- Object we use as reference for change.
public void update(MessageObject newMsgObj)
MessageObject
update
in class MessageObject
public java.lang.String toString()
toString
in class MessageObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |