Player Class

Represents a player in the game.

Definition

Namespace: ProjectLCore.Players
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public abstract class Player
Inheritance
Object    Player
Derived

Constructors

Player Initializes a new instance of the Player class and sets the player name to "Player {Id}".

Properties

Id The unique ID of the player.
Name The name of the player.

Methods

GetActionAsync Asynchronously gets the action the player wants to take based on the current game context.
GetRewardAsync Asynchronously gets the shape the player wants as a reward for completing a puzzle. Note that the player doesn't get the current game context here. This is because this function will be called right after he completes a puzzle and therefore he knows the current game state from the last GetActionAsync(GameStateGameInfo, PlayerStatePlayerInfo, TurnInfo, ActionVerifier, CancellationToken) call.

See Also