C# 클래스 DirectionProperties, PuzzleGameProject

Class that represent Player properties associated with a direction.
파일 보기 프로젝트 열기: Cedric-Paris/PuzzleGameProject 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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