cz.cuni.pogamut.Client
Class KnownPlayers
java.lang.Object
cz.cuni.pogamut.Client.KnownCathegorizedObjects
cz.cuni.pogamut.Client.KnownPlayers
- All Implemented Interfaces:
- RcvMsgListener, java.util.EventListener
public class KnownPlayers
- extends KnownCathegorizedObjects
Descendant of KnownCathegorizedObjects - store players, keep their data up to date
useful for situations like pursueing enemy, which got hidden behind the corner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KnownPlayers
public KnownPlayers(AgentBody body)
getPlayersLastKnownPosition
public Triple getPlayersLastKnownPosition(int ID)
- get player last known possition
- Parameters:
ID
-
- Returns:
- triple of player position
getPlayerInfo
public Player getPlayerInfo(int ID)
- obtain last information about the player
- Parameters:
ID
-
- Returns:
- instance of Player - all atributes
getStoredPlayers
public java.util.ArrayList<Player> getStoredPlayers()
- get stored players
- Returns:
- array of players