Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Chess
Data
Entities
ChessPiece
GetMovementModifier
Chess.Data.Entities.ChessPiece.GetMovementModifier C# (CSharp) Метод
Документация по классу ChessPiece
Показать файл
Открыть проект
GetMovementModifier()
защищенный
Метод
protected
GetMovementModifier
(
int
change
) :
int
change
int
Результат
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