Class PlayGameLogicRandomBehaviour
java.lang.Object
net.demilich.metastone.game.behaviour.AbstractBehaviour
net.demilich.metastone.game.behaviour.IntelligentBehaviour
net.demilich.metastone.game.behaviour.PlayRandomBehaviour
net.demilich.metastone.game.behaviour.PlayGameLogicRandomBehaviour
- All Implemented Interfaces:
Serializable
,Cloneable
,Behaviour
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets a name for the behaviour.protected Random
getRandom
(GameContext context) Methods inherited from class net.demilich.metastone.game.behaviour.PlayRandomBehaviour
mulligan, randomSubset, requestAction
Methods inherited from class net.demilich.metastone.game.behaviour.IntelligentBehaviour
isHuman
Methods inherited from class net.demilich.metastone.game.behaviour.AbstractBehaviour
clone, mulliganAsync, onGameOver, requestActionAsync
-
Constructor Details
-
PlayGameLogicRandomBehaviour
public PlayGameLogicRandomBehaviour()
-
-
Method Details
-
getName
Description copied from interface:Behaviour
Gets a name for the behaviour. This should correspond to how the decisions are being made, e.g., a"Human Behaviour"
or an"AI Behaviour
.- Specified by:
getName
in interfaceBehaviour
- Overrides:
getName
in classPlayRandomBehaviour
- Returns:
- A
String
description of the behaviour.
-
getRandom
- Overrides:
getRandom
in classPlayRandomBehaviour
-