Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Chess
Data
Entities
ChessPiece
GetMovementModifier
Chess.Data.Entities.ChessPiece.GetMovementModifier C# (CSharp) Method
ChessPiece Class Documentation
Show file
Open project: colin-higgins/ChessSharp
GetMovementModifier()
protected
method
protected
GetMovementModifier
(
int
change
) :
int
change
int
return
int
protected int GetMovementModifier(int change) { return change > 0 ? 1 : change < 0 ? -1 : 0; }
ChessPiece
DestroyOccupant
GetAttacker
GetDestinationPiece
GetDiagonalMoves
GetHorizontalMoves
GetMovementModifier
GetOppositeTeam
GetPieceType
GetValidMoves
GetVerticalMoves
HasCollision
InBounds
IsLegalMove
LegalDirectionByTeam
Move
SetupNewMove
ValidateNotAttackingSameTeam