|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsimulations.core.Attack
public class Attack
This class contains infos about an attack ie the attacking player and the players to ask support
| Constructor Summary | |
|---|---|
Attack(Player attackingPlayer,
Player attackedPlayer,
java.util.ArrayList askingList)
Creates a new instance of Attack |
|
| Method Summary | |
|---|---|
java.util.ArrayList |
getAskingList()
Getter for property askingList. |
Player |
getAttackedPlayer()
Getter for property attackedPlayer. |
Player |
getAttackingPlayer()
Getter for property attackingPlayer. |
void |
setAskingList(java.util.ArrayList askingList)
Setter for property askingList. |
void |
setAttackedPlayer(Player attackedPlayer)
Setter for property attackedPlayer. |
void |
setAttackingPlayer(Player attackingPlayer)
Setter for property attackingPlayer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attack(Player attackingPlayer,
Player attackedPlayer,
java.util.ArrayList askingList)
attackingPlayer - The attacking playerattackedPlayer - The attacked playeraskingList - The list of players to ask support| Method Detail |
|---|
public java.util.ArrayList getAskingList()
public void setAskingList(java.util.ArrayList askingList)
askingList - New value of property askingList.public Player getAttackedPlayer()
public void setAttackedPlayer(Player attackedPlayer)
attackedPlayer - New value of property attackedPlayer.public Player getAttackingPlayer()
public void setAttackingPlayer(Player attackingPlayer)
attackingPlayer - New value of property attackingPlayer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||