C# Class Sol.PlayerStats

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: Stumpstump/RoverGame Class Usage Examples

Public Properties

Property Type Description
OverallCharge float
OverallHealth float
cursorImage UnityEngine.Texture2D
knownRecipes List
minSpeed float
movementEnabled int
roverComponents List
statCollection StatCollection
sun UnityEngine.Light
sunDown float
sunUp float

Private Properties

Property Type Description
Awake void
KillPlayer IEnumerator
Update void

Public Methods

Method Description
AddRecipe ( Recipe r ) : void

Add recipe to list of player's craftables

DisableMovement ( ) : void
EnableMovement ( ) : void
FixedUpdate ( ) : void
ModifyHealth ( float addedModifier ) : void
ModifyStat ( int statId ) : float

Process stat, applying all stat modifications

RemoveRecipe ( Recipe r ) : void

Remove recipe from list of player's craftables

Private Methods

Method Description
Awake ( ) : void
KillPlayer ( ) : IEnumerator

Kill the player and begin the reset process

Update ( ) : void

Method Details

AddRecipe() public method

Add recipe to list of player's craftables
public AddRecipe ( Recipe r ) : void
r Recipe
return void

DisableMovement() public method

public DisableMovement ( ) : void
return void

EnableMovement() public method

public EnableMovement ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

ModifyHealth() public method

public ModifyHealth ( float addedModifier ) : void
addedModifier float
return void

ModifyStat() public method

Process stat, applying all stat modifications
public ModifyStat ( int statId ) : float
statId int
return float

RemoveRecipe() public method

Remove recipe from list of player's craftables
public RemoveRecipe ( Recipe r ) : void
r Recipe
return void

Property Details

OverallCharge public_oe property

public float OverallCharge
return float

OverallHealth public_oe property

public float OverallHealth
return float

cursorImage public_oe property

public Texture2D,UnityEngine cursorImage
return UnityEngine.Texture2D

knownRecipes public_oe property

public List knownRecipes
return List

minSpeed public_oe property

public float minSpeed
return float

movementEnabled public_oe property

public int movementEnabled
return int

roverComponents public_oe property

public List roverComponents
return List

statCollection public_oe property

public StatCollection statCollection
return StatCollection

sun public_oe property

public Light,UnityEngine sun
return UnityEngine.Light

sunDown public_oe property

public float sunDown
return float

sunUp public_oe property

public float sunUp
return float