C# Class GameEntities.Weapon

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

Private Properties

Property Type Description
UpdateMainMeshObjectMaterial void

Public Methods

Method Description
GetFirePosition ( bool alternative ) : Vec3
GetFireRotation ( bool alternative ) : Quat
ResetForceFireRotationLookTo ( ) : void
SetForceFireRotationLookTo ( Vec3 lookTo ) : void
TryFire ( bool alternative ) : bool

Protected Methods

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

Private Methods

Method Description
UpdateMainMeshObjectMaterial ( ) : void

Method Details

DoPreFireEvent() protected method

protected DoPreFireEvent ( bool alternative ) : void
alternative bool
return void

GetFirePosition() protected method

protected GetFirePosition ( WeaponType typeMode ) : Vec3
typeMode WeaponType
return Vec3

GetFirePosition() public abstract method

public abstract GetFirePosition ( bool alternative ) : Vec3
alternative bool
return Vec3

GetFireRotation() protected method

protected GetFireRotation ( WeaponType typeMode ) : Quat
typeMode WeaponType
return Quat

GetFireRotation() public abstract method

public abstract GetFireRotation ( bool alternative ) : Quat
alternative bool
return Quat

OnPostCreate() protected method

protected OnPostCreate ( bool loaded ) : void
loaded bool
return void

OnUpdateBaseAnimation() protected method

protected OnUpdateBaseAnimation ( ) : void
return void

ResetForceFireRotationLookTo() public method

public ResetForceFireRotationLookTo ( ) : void
return void

SetForceFireRotationLookTo() public method

public SetForceFireRotationLookTo ( Vec3 lookTo ) : void
lookTo Vec3
return void

TryFire() public abstract method

public abstract TryFire ( bool alternative ) : bool
alternative bool
return bool