|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapMultiCellModel
Interface pour un modèle associé à la carte MapMultiCell.
Field Summary | |
---|---|
static String |
PROPERTY_AGENT_COLOR_PREFIX
Property name prefix for the color of agents. |
static String |
PROPERTY_AGENT_POSITION_PREFIX
Property name prefix for the position of agents. |
Method Summary | |
---|---|
Color |
getAgentColor(String inAgentName)
Get the color of an agent from its name. |
Point |
getAgentPosition(String inAgentName)
Get the position of an agent from its name. |
Set |
getAllAgents()
Get the names of all agents on the map. |
Dimension |
getCellSize()
Get the size of the cells (constant). |
GameModel |
getGameModel()
Get the game model. |
Point |
getLocalAgentPosition()
Accesseur sur la position de l'agent local. |
Dimension |
getMapSize()
Get the size of the map (constant). |
int |
getMaxAgentsPerCell()
Get the maximum number of agents per cell (constant). |
Methods inherited from interface fr.lip6.sma.simulacion.app.GameModel |
---|
addPropertyChangeListener, removePropertyChangeListener |
Field Detail |
---|
static final String PROPERTY_AGENT_POSITION_PREFIX
static final String PROPERTY_AGENT_COLOR_PREFIX
Method Detail |
---|
Dimension getMapSize()
Dimension getCellSize()
int getMaxAgentsPerCell()
Point getLocalAgentPosition()
Point getAgentPosition(String inAgentName)
inAgentName
- name of the agent.
Set getAllAgents()
Color getAgentColor(String inAgentName)
inAgentName
- name of the agent.
GameModel getGameModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |