|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.gui.coalitions.CoalitionTable
public class CoalitionTable
This class is used to store who attack who directly or indirectly
Constructor Summary | |
---|---|
CoalitionTable(java.util.ArrayList playerList)
Creates a new instance of CoalitionTable |
Method Summary | |
---|---|
java.util.ArrayList |
getAttackingPlayers(Player player)
Returns the list of players that have attacked player |
java.util.ArrayList |
getPlayerList()
Getter for property playerList. |
boolean[][] |
getTable()
Getter for property table. |
void |
setPlayerList(java.util.ArrayList playerList)
Setter for property playerList. |
void |
setTable(boolean[][] table)
Setter for property table. |
void |
setTable(Turn turn)
This method init the table with the turn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoalitionTable(java.util.ArrayList playerList)
playerList
- The players listMethod Detail |
---|
public java.util.ArrayList getAttackingPlayers(Player player)
player
- The player
public void setTable(Turn turn)
turn
- The turn to usepublic java.util.ArrayList getPlayerList()
public void setPlayerList(java.util.ArrayList playerList)
playerList
- New value of property playerList.public boolean[][] getTable()
public void setTable(boolean[][] table)
table
- New value of property table.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |