|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.core.strategy.Strategy
simulations.core.strategy.completeStrategy.CompleteStrategy
simulations.core.strategy.completeStrategy.GenericComposedStrategy
simulations.core.strategy.completeStrategy.StupidStrategy
public class StupidStrategy
Field Summary |
---|
Fields inherited from class simulations.core.strategy.completeStrategy.CompleteStrategy |
---|
askingStrategyVector, attackStrategyVector, decisionStrategyVector |
Fields inherited from class simulations.core.strategy.Strategy |
---|
abr, memory, name, randomGenerator |
Constructor Summary | |
---|---|
StupidStrategy()
Creates a new instance of StupidStrategy |
Method Summary | |
---|---|
void |
updateAttacksInfos(Player player,
java.util.ArrayList attacksList)
This method is called by the judge after the decision of players to attack and to ask supports to inform the strategy |
Methods inherited from class simulations.core.strategy.completeStrategy.GenericComposedStrategy |
---|
getDescription, getPlayersToAskSupport, getPlayerToAttack, supportAttack, updateLastTurn |
Methods inherited from class simulations.core.strategy.completeStrategy.CompleteStrategy |
---|
equals, getAskingComposition, getAskingStrategyVector, getAttackComposition, getAttackStrategyVector, getDecisionComposition, getDecisionStrategyVector, setAskingStrategyVector, setAttackStrategyVector, setDecisionStrategyVector |
Methods inherited from class simulations.core.strategy.Strategy |
---|
getAbr, getMemory, getName, getRandomGenerator, setAbr, setMemory, setName, setRandomGenerator, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StupidStrategy()
Method Detail |
---|
public void updateAttacksInfos(Player player, java.util.ArrayList attacksList)
updateAttacksInfos
in class GenericComposedStrategy
player
- The owner of the strategyattacksList
- The list of attacks
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |