AIPlayerBaseGetAction(GameStateGameInfo, PlayerStatePlayerInfo, ListPlayerStatePlayerInfo, TurnInfo, ActionVerifier) Method

Implementation of an algorithm that decides the action the player wants to take based on the current game context.

Definition

Namespace: ProjectLCore.Players
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
protected abstract GameAction GetAction(
	GameStateGameInfo gameInfo,
	PlayerStatePlayerInfo myInfo,
	List<PlayerStatePlayerInfo> enemyInfos,
	TurnInfo turnInfo,
	ActionVerifier verifier
)

Parameters

gameInfo  GameStateGameInfo
Information about the shared resources.
myInfo  PlayerStatePlayerInfo
Information about the resources of THIS player
enemyInfos  ListPlayerStatePlayerInfo
Information about the resources of the OTHER players.
turnInfo  TurnInfo
Information about the current turn.
verifier  ActionVerifier
Verifier for verifying the validity of actions in the current game context.

Return Value

GameAction
The action the player wants to take.

See Also