C# Class PantheonPrototype.Shield

A basic implementation of the shield.
Inheritance: Item
Mostrar archivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Protected Properties

Property Type Description
currentShield int
energyField Entity
shieldOn bool
totalShield int

Public Methods

Method Description
Shield ( ) : System
Shield ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : System
Update ( GameTime gameTime, Pantheon gameReference ) : void
activate ( Pantheon gameReference, CharacterEntity holder ) : void

Turn the shield on. Currently just draws the sheild. The sheild resources are handled in PlayerCharacter and CharcaterEntity. This may change in the future.

Method Details

Shield() public method

public Shield ( ) : System
return System

Shield() public method

public Shield ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : System
contentManager Microsoft.Xna.Framework.Content.ContentManager
return System

Update() public method

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
return void

activate() public method

Turn the shield on. Currently just draws the sheild. The sheild resources are handled in PlayerCharacter and CharcaterEntity. This may change in the future.
public activate ( Pantheon gameReference, CharacterEntity holder ) : void
gameReference Pantheon A reference so we can see where everything is.
holder CharacterEntity A reference to the character holding the weapon.
return void

Property Details

currentShield protected_oe property

The current status of the shield relative to the total shield.
protected int currentShield
return int

energyField protected_oe property

The manifestation of the shield when it is on.
protected Entity energyField
return Entity

shieldOn protected_oe property

Flag indicating if the shield is currently on.
protected bool shieldOn
return bool

totalShield protected_oe property

The total capacity of the shield.
protected int totalShield
return int