C# 클래스 PantheonPrototype.Shield

A basic implementation of the shield.
상속: Item
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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