cz.cuni.pogamut.Client
Class KnownPlayers

java.lang.Object
  extended by cz.cuni.pogamut.Client.KnownCathegorizedObjects
      extended by 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


Field Summary
 
Fields inherited from class cz.cuni.pogamut.Client.KnownCathegorizedObjects
storage
 
Constructor Summary
KnownPlayers(AgentBody body)
           
 
Method Summary
 Player getPlayerInfo(int ID)
          obtain last information about the player
 Triple getPlayersLastKnownPosition(int ID)
          get player last known possition
 java.util.ArrayList<Player> getStoredPlayers()
          get stored players
 
Methods inherited from class cz.cuni.pogamut.Client.KnownCathegorizedObjects
getSpecifiedObject, getStorage, receiveMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnownPlayers

public KnownPlayers(AgentBody body)
Method Detail

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