C# Class GameEntities.RTSBuilding

Inheritance: RTSUnit
Datei anzeigen Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
CreateProductUnitAttachedMesh void
CreateProductedUnit void
DestroyProductUnitAttachedMesh void
TickProductUnit void
UpdateAttachedObjectsVisibility void

Public Methods

Method Description
StartProductUnit ( RTSUnitType unitType ) : void
StopProductUnit ( ) : void

Protected Methods

Method Description
OnDamage ( MapObject prejudicial, Vec3 pos, Shape shape, float damage, bool allowMoveDamageToParent ) : void
OnPostCreate ( bool loaded ) : void

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).

OnTick ( ) : void

Overridden from Engine.EntitySystem.Entity.OnTick().

Private Methods

Method Description
CreateProductUnitAttachedMesh ( ) : void
CreateProductedUnit ( ) : void
DestroyProductUnitAttachedMesh ( ) : void
TickProductUnit ( ) : void
UpdateAttachedObjectsVisibility ( ) : void

Method Details

OnDamage() protected method

protected OnDamage ( MapObject prejudicial, Vec3 pos, Shape shape, float damage, bool allowMoveDamageToParent ) : void
prejudicial MapObject
pos Vec3
shape Shape
damage float
allowMoveDamageToParent bool
return void

OnPostCreate() protected method

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).
protected OnPostCreate ( bool loaded ) : void
loaded bool
return void

OnTick() protected method

Overridden from Engine.EntitySystem.Entity.OnTick().
protected OnTick ( ) : void
return void

StartProductUnit() public method

public StartProductUnit ( RTSUnitType unitType ) : void
unitType RTSUnitType
return void

StopProductUnit() public method

public StopProductUnit ( ) : void
return void