C# Class DirectionProperties, PuzzleGameProject

Class that represent Player properties associated with a direction.
Afficher le fichier Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Méthodes publiques

Свойство Type Description
animationCode int
calculFavoritePos CalculFavoritePos
direction Vector3
posObstacleObserver Vector2
positionNextObserver Vector3
squareCanBeTreat SquareCanBeTreat

Méthodes publiques

Méthode Description
DirectionProperties ( Vector3 direction, Vector2 posObstacleObserver, Vector3 positionNextObserver, int animationCode, CalculFavoritePos fonctCal, SquareCanBeTreat fonctTreat ) : System.Collections

Initializes a new instance of the DirectionProperties class.

Method Details

DirectionProperties() public méthode

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).
Résultat System.Collections

Property Details

animationCode public_oe property

Player animation number for this direction.
public int animationCode
Résultat int

calculFavoritePos public_oe property

Delegate function used to calculate the position at which the player is repositioned when taking this direction.
public CalculFavoritePos calculFavoritePos
Résultat CalculFavoritePos

direction public_oe property

Player direction associated with all these properties.
public Vector3 direction
Résultat Vector3

posObstacleObserver public_oe property

Position/Size of the obstacle observer collider for this direction.
public Vector2 posObstacleObserver
Résultat Vector2

positionNextObserver public_oe property

public Vector3 positionNextObserver
Résultat Vector3

squareCanBeTreat public_oe property

Delegate function used to determine if an item should be treated, to prevent it from being considered too early.
public SquareCanBeTreat squareCanBeTreat
Résultat SquareCanBeTreat