C# Class CompleteMovement_01, TWI_Repo

This is the Ship's base class, not named to the best conventions. Allows for the movement of the ship based on Kien's initial design. Also works in conjunction with "BodyFlow.cs" to make use of the worlds blood flow for forced movement of the ship through the body. Also contains the variables for which the game will recognize the ships stats: Cabin Pressure and Oxygen. Will be used with energy as well.
Inheritance: MonoBehaviour
Afficher le fichier Open project: justcollins/TWI_Repo

Méthodes publiques

Свойство Type Description
DOWN KeyCode,
ENGINE_ON KeyCode,
LEFT KeyCode,
RIGHT KeyCode,
UP KeyCode,
cabinPressure int
maxThrustValue float
minThrustValue float
oxyTimer float
shipRB UnityEngine.Rigidbody
thrust float

Méthodes publiques

Méthode Description
CheckUpDownVelocity ( ) : void
FixedUpdate ( ) : void
MotorVelocityContorl ( ) : void
Start ( ) : void
Update ( ) : void
getBloodForce ( ) : float
getCabinPressure ( ) : int
getOxygenLevel ( ) : int
getSectionInt ( ) : int
setBloodForce ( float newBlood ) : void
setCabinPressure ( int newPressure ) : void
setOxygenLevel ( int newOxy ) : void
setSectionInt ( int newSect ) : void

Private Methods

Méthode Description
KeyValue ( KeyCode, A, KeyCode, B, float Value, float yValue, float _float, float SmoothTime ) : float

Method Details

CheckUpDownVelocity() public méthode

public CheckUpDownVelocity ( ) : void
Résultat void

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

MotorVelocityContorl() public méthode

public MotorVelocityContorl ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

getBloodForce() public méthode

public getBloodForce ( ) : float
Résultat float

getCabinPressure() public méthode

public getCabinPressure ( ) : int
Résultat int

getOxygenLevel() public méthode

public getOxygenLevel ( ) : int
Résultat int

getSectionInt() public méthode

public getSectionInt ( ) : int
Résultat int

setBloodForce() public méthode

public setBloodForce ( float newBlood ) : void
newBlood float
Résultat void

setCabinPressure() public méthode

public setCabinPressure ( int newPressure ) : void
newPressure int
Résultat void

setOxygenLevel() public méthode

public setOxygenLevel ( int newOxy ) : void
newOxy int
Résultat void

setSectionInt() public méthode

public setSectionInt ( int newSect ) : void
newSect int
Résultat void

Property Details

DOWN public_oe property

public KeyCode, DOWN
Résultat KeyCode,

ENGINE_ON public_oe property

public KeyCode, ENGINE_ON
Résultat KeyCode,

LEFT public_oe property

public KeyCode, LEFT
Résultat KeyCode,

RIGHT public_oe property

public KeyCode, RIGHT
Résultat KeyCode,

UP public_oe property

public KeyCode, UP
Résultat KeyCode,

cabinPressure public_oe property

public int cabinPressure
Résultat int

maxThrustValue public_oe property

public float maxThrustValue
Résultat float

minThrustValue public_oe property

public float minThrustValue
Résultat float

oxyTimer public_oe property

public float oxyTimer
Résultat float

shipRB public_oe property

public Rigidbody,UnityEngine shipRB
Résultat UnityEngine.Rigidbody

thrust public_oe property

public float thrust
Résultat float