C# Class PantheonPrototype.Shield

A basic implementation of the shield.
Inheritance: Item
Afficher le fichier Open project: Bacon41/PantheonPrototype Class Usage Examples

Protected Properties

Свойство Type Description
currentShield int
energyField Entity
shieldOn bool
totalShield int

Méthodes publiques

Méthode 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 méthode

public Shield ( ) : System
Résultat System

Shield() public méthode

public Shield ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : System
contentManager Microsoft.Xna.Framework.Content.ContentManager
Résultat System

Update() public méthode

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
Résultat void

activate() public méthode

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.
Résultat void

Property Details

currentShield protected_oe property

The current status of the shield relative to the total shield.
protected int currentShield
Résultat int

energyField protected_oe property

The manifestation of the shield when it is on.
protected Entity energyField
Résultat Entity

shieldOn protected_oe property

Flag indicating if the shield is currently on.
protected bool shieldOn
Résultat bool

totalShield protected_oe property

The total capacity of the shield.
protected int totalShield
Résultat int