C# Class EffectTransformation, PuzzleGameProject

Class representing the changes applied to the player by an element. This class is used by the PlayerMovementController to know the effects of elements that the player come across.
Mostrar archivo Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Public Properties

Property Type Description
isChangingSomething bool
isEnergy bool
isObjectif bool
isObstacle bool
isStartingJump bool
isTall bool
isWater bool
isWinner bool
newDirection DirectionProperties,
newPosition Vector3

Public Methods

Method Description
EffectTransformation ( bool changingSomething = true ) : System.Collections

Initializes a new instance of the EffectTransformation class.

Method Details

EffectTransformation() public method

Initializes a new instance of the EffectTransformation class.
public EffectTransformation ( bool changingSomething = true ) : System.Collections
changingSomething bool see
return System.Collections

Property Details

isChangingSomething public_oe property

Indicate whether there is an effect. false = The effect is not treatedé (no effect)
public bool isChangingSomething
return bool

isEnergy public_oe property

Indicate whether the element encountered is energy.
public bool isEnergy
return bool

isObjectif public_oe property

Indicate whether the element encountered is an objective.
public bool isObjectif
return bool

isObstacle public_oe property

Indicate whether the element encountered is an obstacle.
public bool isObstacle
return bool

isStartingJump public_oe property

Indicates whether the element jumped the player.
public bool isStartingJump
return bool

isTall public_oe property

Indicate whether the element encountered is tall. If it is the case the player can't jump over.
public bool isTall
return bool

isWater public_oe property

Indicate whether the element encountered is water.
public bool isWater
return bool

isWinner public_oe property

Specifies whether the player has won.
public bool isWinner
return bool

newDirection public_oe property

A new direction.
public DirectionProperties, newDirection
return DirectionProperties,

newPosition public_oe property

A new position.
public Vector3 newPosition
return Vector3