C# Класс PantheonPrototype.Shield

A basic implementation of the shield.
Наследование: Item
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
currentShield int
energyField Entity
shieldOn bool
totalShield int

Открытые методы

Метод Описание
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.

Описание методов

Shield() публичный Метод

public Shield ( ) : System
Результат System

Shield() публичный Метод

public Shield ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : System
contentManager Microsoft.Xna.Framework.Content.ContentManager
Результат System

Update() публичный Метод

public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
Результат void

activate() публичный Метод

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.
Результат void

Описание свойств

currentShield защищенное свойство

The current status of the shield relative to the total shield.
protected int currentShield
Результат int

energyField защищенное свойство

The manifestation of the shield when it is on.
protected Entity energyField
Результат Entity

shieldOn защищенное свойство

Flag indicating if the shield is currently on.
protected bool shieldOn
Результат bool

totalShield защищенное свойство

The total capacity of the shield.
protected int totalShield
Результат int