C# Class GameEntities.Weapon

Defines the weapons. Both hand-held by characters or guns established on turret are weapons.
Inheritance: Dynamic
Afficher le fichier Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Свойство Type Description
UpdateMainMeshObjectMaterial void

Méthodes publiques

Méthode Description
GetFirePosition ( bool alternative ) : Vec3
GetFireRotation ( bool alternative ) : Quat
ResetForceFireRotationLookTo ( ) : void
SetForceFireRotationLookTo ( Vec3 lookTo ) : void
TryFire ( bool alternative ) : bool

Méthodes protégées

Méthode Description
DoPreFireEvent ( bool alternative ) : void
GetFirePosition ( WeaponType typeMode ) : Vec3
GetFireRotation ( WeaponType typeMode ) : Quat
OnPostCreate ( bool loaded ) : void
OnUpdateBaseAnimation ( ) : void

Private Methods

Méthode Description
UpdateMainMeshObjectMaterial ( ) : void

Method Details

DoPreFireEvent() protected méthode

protected DoPreFireEvent ( bool alternative ) : void
alternative bool
Résultat void

GetFirePosition() protected méthode

protected GetFirePosition ( WeaponType typeMode ) : Vec3
typeMode WeaponType
Résultat Vec3

GetFirePosition() public abstract méthode

public abstract GetFirePosition ( bool alternative ) : Vec3
alternative bool
Résultat Vec3

GetFireRotation() protected méthode

protected GetFireRotation ( WeaponType typeMode ) : Quat
typeMode WeaponType
Résultat Quat

GetFireRotation() public abstract méthode

public abstract GetFireRotation ( bool alternative ) : Quat
alternative bool
Résultat Quat

OnPostCreate() protected méthode

protected OnPostCreate ( bool loaded ) : void
loaded bool
Résultat void

OnUpdateBaseAnimation() protected méthode

protected OnUpdateBaseAnimation ( ) : void
Résultat void

ResetForceFireRotationLookTo() public méthode

public ResetForceFireRotationLookTo ( ) : void
Résultat void

SetForceFireRotationLookTo() public méthode

public SetForceFireRotationLookTo ( Vec3 lookTo ) : void
lookTo Vec3
Résultat void

TryFire() public abstract méthode

public abstract TryFire ( bool alternative ) : bool
alternative bool
Résultat bool