C# Class WebGame.Ship

Inheritance: Entity
Afficher le fichier Open project: AdmiralPotato/ggj2013 Class Usage Examples

Méthodes publiques

Свойство Type Description
LastBeamBanksUsed DateTime>.Dictionary
Players List
RepairCrewTargets List
missionState MissionStatus

Private Properties

Свойство Type Description
BeamDamage void
DetermineShieldFrom Shield
FireBeam void
SendUpdate void
SetCoolant void
SetPower void
SetupMissions void
TurnAngleNeededForDesiredOrientation double
UpdateMission void
UpdateOrientation void
UpdateProjectileLoading void
UpdateRepair void
UpdateShields void
UpdateTargetVelocity void

Méthodes publiques

Méthode Description
AddPlayer ( Player player ) : void
ApplyForce ( System.TimeSpan elapsedTime ) : double?
BeamCoolDownTime ( int bank ) : double
Create ( ShipType type, Vector3 position = null ) : Ship
IsEntityCloserThan ( Entity target, float distance ) : bool
LaunchProjectile ( int tubeNumber, Entity target ) : Projectile
LoadProjectile ( int tubeNumber, ProjectileType type ) : bool
RemovePlayer ( Player player ) : void
SetRepairTarget ( string part, int repairCrewIndex = -1 ) : void
Ship ( ) : System
Ship ( Vector3 position ) : System
Ship ( double mass, Vector3 position = null ) : System
Update ( System.TimeSpan elapsed ) : void

Méthodes protégées

Méthode Description
HandleDamage ( int &damage, double orientation ) : void

Private Methods

Méthode Description
BeamDamage ( Entity target, double amount ) : void
DetermineShieldFrom ( double orientation ) : Shield
FireBeam ( int bank, Entity target, BeamType type ) : void
SendUpdate ( ) : void
SetCoolant ( string part, int amount ) : void
SetPower ( string part, float amount ) : void
SetupMissions ( ) : void
TurnAngleNeededForDesiredOrientation ( ) : double
UpdateMission ( ) : void
UpdateOrientation ( System.TimeSpan elapsed ) : void
UpdateProjectileLoading ( System.TimeSpan elapsed ) : void
UpdateRepair ( System.TimeSpan elapsed ) : void
UpdateShields ( System.TimeSpan elapsed ) : void
UpdateTargetVelocity ( System.TimeSpan elapsed ) : void

Method Details

AddPlayer() public méthode

public AddPlayer ( Player player ) : void
player Player
Résultat void

ApplyForce() public méthode

public ApplyForce ( System.TimeSpan elapsedTime ) : double?
elapsedTime System.TimeSpan
Résultat double?

BeamCoolDownTime() public méthode

public BeamCoolDownTime ( int bank ) : double
bank int
Résultat double

Create() public static méthode

public static Create ( ShipType type, Vector3 position = null ) : Ship
type ShipType
position Vector3
Résultat Ship

HandleDamage() protected méthode

protected HandleDamage ( int &damage, double orientation ) : void
damage int
orientation double
Résultat void

IsEntityCloserThan() public méthode

public IsEntityCloserThan ( Entity target, float distance ) : bool
target Entity
distance float
Résultat bool

LaunchProjectile() public méthode

public LaunchProjectile ( int tubeNumber, Entity target ) : Projectile
tubeNumber int
target Entity
Résultat Projectile

LoadProjectile() public méthode

public LoadProjectile ( int tubeNumber, ProjectileType type ) : bool
tubeNumber int
type ProjectileType
Résultat bool

RemovePlayer() public méthode

public RemovePlayer ( Player player ) : void
player Player
Résultat void

SetRepairTarget() public méthode

public SetRepairTarget ( string part, int repairCrewIndex = -1 ) : void
part string
repairCrewIndex int
Résultat void

Ship() public méthode

public Ship ( ) : System
Résultat System

Ship() public méthode

public Ship ( Vector3 position ) : System
position Vector3
Résultat System

Ship() public méthode

public Ship ( double mass, Vector3 position = null ) : System
mass double
position Vector3
Résultat System

Update() public méthode

public Update ( System.TimeSpan elapsed ) : void
elapsed System.TimeSpan
Résultat void

Property Details

LastBeamBanksUsed public_oe property

public Dictionary LastBeamBanksUsed
Résultat DateTime>.Dictionary

Players public_oe property

public List Players
Résultat List

RepairCrewTargets public_oe property

The string is the name of the system they are repairing
public List RepairCrewTargets
Résultat List

missionState public_oe property

public MissionStatus,WebGame missionState
Résultat MissionStatus