C# Class DirectionProperties, PuzzleGameProject

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

Public Properties

Property Type Description
animationCode int
calculFavoritePos CalculFavoritePos
direction Vector3
posObstacleObserver Vector2
positionNextObserver Vector3
squareCanBeTreat SquareCanBeTreat

Public Methods

Method 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 method

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).
return System.Collections

Property Details

animationCode public_oe property

Player animation number for this direction.
public int animationCode
return 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
return CalculFavoritePos

direction public_oe property

Player direction associated with all these properties.
public Vector3 direction
return Vector3

posObstacleObserver public_oe property

Position/Size of the obstacle observer collider for this direction.
public Vector2 posObstacleObserver
return Vector2

positionNextObserver public_oe property

public Vector3 positionNextObserver
return 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
return SquareCanBeTreat