C# Класс DirectionProperties, PuzzleGameProject

Class that represent Player properties associated with a direction.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
animationCode int
calculFavoritePos CalculFavoritePos
direction Vector3
posObstacleObserver Vector2
positionNextObserver Vector3
squareCanBeTreat SquareCanBeTreat

Открытые методы

Метод Описание
DirectionProperties ( Vector3 direction, Vector2 posObstacleObserver, Vector3 positionNextObserver, int animationCode, CalculFavoritePos fonctCal, SquareCanBeTreat fonctTreat ) : System.Collections

Initializes a new instance of the DirectionProperties class.

Описание методов

DirectionProperties() публичный Метод

Initializes a new instance of the DirectionProperties class.
public DirectionProperties ( Vector3 direction, Vector2 posObstacleObserver, Vector3 positionNextObserver, int animationCode, CalculFavoritePos fonctCal, SquareCanBeTreat fonctTreat ) : System.Collections
direction Vector3 Direction
posObstacleObserver Vector2 Position/Size of the obstacle observer.
positionNextObserver Vector3 Position next observer.
animationCode int Animation code.
fonctCal CalculFavoritePos Calculating function for the favorite position (see attribute)
fonctTreat SquareCanBeTreat Function that determine when the treatment of an item need to be done (see attribute).
Результат System.Collections

Описание свойств

animationCode публичное свойство

Player animation number for this direction.
public int animationCode
Результат int

calculFavoritePos публичное свойство

Delegate function used to calculate the position at which the player is repositioned when taking this direction.
public CalculFavoritePos calculFavoritePos
Результат CalculFavoritePos

direction публичное свойство

Player direction associated with all these properties.
public Vector3 direction
Результат Vector3

posObstacleObserver публичное свойство

Position/Size of the obstacle observer collider for this direction.
public Vector2 posObstacleObserver
Результат Vector2

positionNextObserver публичное свойство

public Vector3 positionNextObserver
Результат Vector3

squareCanBeTreat публичное свойство

Delegate function used to determine if an item should be treated, to prevent it from being considered too early.
public SquareCanBeTreat squareCanBeTreat
Результат SquareCanBeTreat