Inherits SandBox.BoardGames.BoardGameBase.
|
override void | OnAfterBoardSetUp () |
|
override PawnBase | SelectPawn (PawnBase pawn) |
|
override void | MovePawnToTileDelayed (PawnBase pawn, TileBase tile, bool instantMove, bool displayMessage, float delay) |
|
override void | SwitchPlayerTurn () |
|
override bool | CheckGameEnded () |
|
Protected Member Functions inherited from SandBox.BoardGames.BoardGameBase |
| BoardGameBase (MissionBoardGameLogic mission, TextObject name, PlayerTurn startingPlayer) |
|
abstract PawnBase | SelectPawn (PawnBase pawn) |
|
abstract bool | CheckGameEnded () |
|
abstract void | OnAfterBoardSetUp () |
|
virtual void | OnAfterBoardRotated () |
|
virtual void | OnBeforeEndTurn () |
|
virtual void | UpdateAllTilesPositions () |
|
virtual void | OnPawnArrivesGoalPosition (PawnBase pawn, Vec3 prevPos, Vec3 currentPos) |
|
virtual void | HandlePreMovementStage (float dt) |
|
virtual void | HandlePreMovementStageAI (Move move) |
|
virtual void | SwitchPlayerTurn () |
|
virtual void | MovePawnToTile (PawnBase pawn, TileBase tile, bool instantMove=false, bool displayMessage=true) |
|
virtual void | MovePawnToTileDelayed (PawnBase pawn, TileBase tile, bool instantMove, bool displayMessage, float delay) |
|
virtual void | OnAfterDiceRollAnimation () |
|
void | RemovePawnFromBoard (PawnBase pawn, float speed, bool instantMove=false) |
|
PawnBase | InitializeUnit (PawnBase pawnToInit) |
|
Move | HandlePlayerInput (float dt) |
|
PawnBase | GetHoveredPawnIfAny () |
|
TileBase | GetHoveredTileIfAny () |
|
void | CheckSwitchPlayerTurn () |
|
void | OnVictory (string message=StringVictoryMessage) |
|
void | OnAfterEndTurn () |
|
void | OnDefeat (string message=StringDefeatMessage) |
|
void | OnDraw (string message=StringDrawMessage) |
|
void | EndTurn () |
|
void | ClearValidMoves () |
|
void | HideAllValidTiles () |
|
void | ShowAllValidTiles () |
|
void | OnAIWantsForfeit () |
|
◆ State
Enumerator |
---|
InProgress | |
Aborted | |
PlayerWon | |
AIWon | |
◆ BoardGameTablut()
◆ IsCitadelTile()
static bool SandBox.BoardGames.BoardGameTablut.IsCitadelTile |
( |
int |
tileX, |
|
|
int |
tileY |
|
) |
| |
|
static |
◆ InitializeUnits()
override void SandBox.BoardGames.BoardGameTablut.InitializeUnits |
( |
| ) |
|
|
virtual |
◆ InitializeTiles()
override void SandBox.BoardGames.BoardGameTablut.InitializeTiles |
( |
| ) |
|
|
virtual |
◆ InitializeSound()
override void SandBox.BoardGames.BoardGameTablut.InitializeSound |
( |
| ) |
|
|
virtual |
◆ Reset()
override void SandBox.BoardGames.BoardGameTablut.Reset |
( |
| ) |
|
|
virtual |
◆ CalculateValidMoves()
override List< Move > SandBox.BoardGames.BoardGameTablut.CalculateValidMoves |
( |
PawnBase |
pawn | ) |
|
|
virtual |
◆ SetPawnCaptured()
override void SandBox.BoardGames.BoardGameTablut.SetPawnCaptured |
( |
PawnBase |
pawn, |
|
|
bool |
fake = false |
|
) |
| |
|
virtual |
◆ OnAfterBoardSetUp()
override void SandBox.BoardGames.BoardGameTablut.OnAfterBoardSetUp |
( |
| ) |
|
|
protectedvirtual |
◆ SelectPawn()
override PawnBase SandBox.BoardGames.BoardGameTablut.SelectPawn |
( |
PawnBase |
pawn | ) |
|
|
protectedvirtual |
◆ MovePawnToTileDelayed()
override void SandBox.BoardGames.BoardGameTablut.MovePawnToTileDelayed |
( |
PawnBase |
pawn, |
|
|
TileBase |
tile, |
|
|
bool |
instantMove, |
|
|
bool |
displayMessage, |
|
|
float |
delay |
|
) |
| |
|
protectedvirtual |
◆ SwitchPlayerTurn()
override void SandBox.BoardGames.BoardGameTablut.SwitchPlayerTurn |
( |
| ) |
|
|
protectedvirtual |
◆ CheckGameEnded()
override bool SandBox.BoardGames.BoardGameTablut.CheckGameEnded |
( |
| ) |
|
|
protectedvirtual |
◆ AIMakeMove()
bool SandBox.BoardGames.BoardGameTablut.AIMakeMove |
( |
Move |
move | ) |
|
◆ HasAvailableMoves()
bool SandBox.BoardGames.BoardGameTablut.HasAvailableMoves |
( |
PawnTablut |
pawn | ) |
|
◆ GetRandomAvailableMove()
Move SandBox.BoardGames.BoardGameTablut.GetRandomAvailableMove |
( |
PawnTablut |
pawn | ) |
|
◆ TakeBoardSnapshot()
◆ UndoMove()
◆ CheckGameState()
State SandBox.BoardGames.BoardGameTablut.CheckGameState |
( |
| ) |
|
◆ BoardWidth
const int SandBox.BoardGames.BoardGameTablut.BoardWidth = 9 |
|
static |
◆ BoardHeight
const int SandBox.BoardGames.BoardGameTablut.BoardHeight = 9 |
|
static |
◆ AttackerPawnCount
const int SandBox.BoardGames.BoardGameTablut.AttackerPawnCount = 16 |
|
static |
◆ DefenderPawnCount
const int SandBox.BoardGames.BoardGameTablut.DefenderPawnCount = 9 |
|
static |
◆ TileCount
override int SandBox.BoardGames.BoardGameTablut.TileCount |
|
get |
◆ RotateBoard
override bool SandBox.BoardGames.BoardGameTablut.RotateBoard |
|
getprotected |
◆ PreMovementStagePresent
override bool SandBox.BoardGames.BoardGameTablut.PreMovementStagePresent |
|
getprotected |
◆ DiceRollRequired
override bool SandBox.BoardGames.BoardGameTablut.DiceRollRequired |
|
getprotected |