M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.BoardGames.Pawns.PawnPuluc Class Reference

Inherits SandBox.BoardGames.Pawns.PawnBase.

Public Types

enum  MovementState {
  MovingForward ,
  MovingBackward ,
  ChangingDirection
}
 

Public Member Functions

 PawnPuluc (GameEntity entity, bool playerOne)
 
override void Reset ()
 
override void AddGoalPosition (Vec3 goal)
 
override void MovePawnToGoalPositions (bool instantMove, float speed, bool dragged=false)
 
override void SetPawnAtPosition (Vec3 position)
 
override void EnableCollisionBody ()
 
override void DisableCollisionBody ()
 
void MovePawnBackToSpawn (bool instantMove, float speed, bool fake=false)
 
- Public Member Functions inherited from SandBox.BoardGames.Pawns.PawnBase
virtual void Reset ()
 
virtual void AddGoalPosition (Vec3 goal)
 
virtual void SetPawnAtPosition (Vec3 position)
 
virtual void MovePawnToGoalPositions (bool instantMove, float speed, bool dragged=false)
 
virtual void EnableCollisionBody ()
 
virtual void DisableCollisionBody ()
 
void Tick (float dt)
 
void MovePawnToGoalPositionsDelayed (bool instantMove, float speed, bool dragged, float delay)
 
void SetPlayerOne (bool playerOne)
 
void ClearGoalPositions ()
 
void UpdatePawnPosition ()
 
void PlayPawnSelectSound ()
 

Public Attributes

MovementState State
 
PawnPuluc CapturedBy
 
Vec3 SpawnPos
 
bool IsInSpawn = true
 
bool IsTopPawn = true
 
- Public Attributes inherited from SandBox.BoardGames.Pawns.PawnBase
Action< PawnBase, Vec3, Vec3OnArrivedIntermediateGoalPosition
 
Action< PawnBase, Vec3, Vec3OnArrivedFinalGoalPosition
 

Properties

float Height [get]
 
override Vec3 PosBeforeMoving [get]
 
override bool IsPlaced [get]
 
int X [get, set]
 
List< PawnPulucPawnsBelow [get]
 
bool InPlay [get]
 
- Properties inherited from SandBox.BoardGames.Pawns.PawnBase
static int PawnMoveSoundCodeID [get, set]
 
static int PawnSelectSoundCodeID [get, set]
 
static int PawnTapSoundCodeID [get, set]
 
static int PawnRemoveSoundCodeID [get, set]
 
abstract bool IsPlaced [get]
 
virtual Vec3 PosBeforeMoving [get, protected set]
 
GameEntity Entity [get]
 
List< Vec3GoalPositions [get]
 
Vec3 CurrentPos [get]
 
bool Captured [get, set]
 
bool MovingToDifferentTile [get, set]
 
bool Moving [get]
 
bool PlayerOne [get]
 
bool HasAnyGoalPosition [get]
 

Additional Inherited Members

- Protected Member Functions inherited from SandBox.BoardGames.Pawns.PawnBase
 PawnBase (GameEntity entity, bool playerOne)
 
- Protected Attributes inherited from SandBox.BoardGames.Pawns.PawnBase
Vec3 PosBeforeMovingBase
 

Member Enumeration Documentation

◆ MovementState

Enumerator
MovingForward 
MovingBackward 
ChangingDirection 

Constructor & Destructor Documentation

◆ PawnPuluc()

SandBox.BoardGames.Pawns.PawnPuluc.PawnPuluc ( GameEntity  entity,
bool  playerOne 
)

Member Function Documentation

◆ Reset()

override void SandBox.BoardGames.Pawns.PawnPuluc.Reset ( )
virtual

Reimplemented from SandBox.BoardGames.Pawns.PawnBase.

◆ AddGoalPosition()

override void SandBox.BoardGames.Pawns.PawnPuluc.AddGoalPosition ( Vec3  goal)
virtual

Reimplemented from SandBox.BoardGames.Pawns.PawnBase.

◆ MovePawnToGoalPositions()

override void SandBox.BoardGames.Pawns.PawnPuluc.MovePawnToGoalPositions ( bool  instantMove,
float  speed,
bool  dragged = false 
)
virtual

Reimplemented from SandBox.BoardGames.Pawns.PawnBase.

◆ SetPawnAtPosition()

override void SandBox.BoardGames.Pawns.PawnPuluc.SetPawnAtPosition ( Vec3  position)
virtual

Reimplemented from SandBox.BoardGames.Pawns.PawnBase.

◆ EnableCollisionBody()

override void SandBox.BoardGames.Pawns.PawnPuluc.EnableCollisionBody ( )
virtual

Reimplemented from SandBox.BoardGames.Pawns.PawnBase.

◆ DisableCollisionBody()

override void SandBox.BoardGames.Pawns.PawnPuluc.DisableCollisionBody ( )
virtual

Reimplemented from SandBox.BoardGames.Pawns.PawnBase.

◆ MovePawnBackToSpawn()

void SandBox.BoardGames.Pawns.PawnPuluc.MovePawnBackToSpawn ( bool  instantMove,
float  speed,
bool  fake = false 
)

Member Data Documentation

◆ State

MovementState SandBox.BoardGames.Pawns.PawnPuluc.State

◆ CapturedBy

PawnPuluc SandBox.BoardGames.Pawns.PawnPuluc.CapturedBy

◆ SpawnPos

Vec3 SandBox.BoardGames.Pawns.PawnPuluc.SpawnPos

◆ IsInSpawn

bool SandBox.BoardGames.Pawns.PawnPuluc.IsInSpawn = true

◆ IsTopPawn

bool SandBox.BoardGames.Pawns.PawnPuluc.IsTopPawn = true

Property Documentation

◆ Height

float SandBox.BoardGames.Pawns.PawnPuluc.Height
get

◆ PosBeforeMoving

override Vec3 SandBox.BoardGames.Pawns.PawnPuluc.PosBeforeMoving
get

◆ IsPlaced

override bool SandBox.BoardGames.Pawns.PawnPuluc.IsPlaced
get

◆ X

int SandBox.BoardGames.Pawns.PawnPuluc.X
getset

◆ PawnsBelow

List<PawnPuluc> SandBox.BoardGames.Pawns.PawnPuluc.PawnsBelow
get

◆ InPlay

bool SandBox.BoardGames.Pawns.PawnPuluc.InPlay
get