C# 클래스 PantheonPrototype.Item

An Item is an object that may be equipped and stored in an Inventory. The Item will have an action that may be called without knowledge of the actual function of the Item. This provides encapsulation and abstraction for the inventory.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype

공개 프로퍼티들

프로퍼티 타입 설명
HUDRepresentation Microsoft.Xna.Framework.Graphics.Texture2D
isNull bool
soundCueName string
type int

보호된 프로퍼티들

프로퍼티 타입 설명
info String
itemTag String

공개 메소드들

메소드 설명
Item ( ) : System
Item ( Microsoft.Xna.Framework.Graphics.Texture2D HUDrep ) : System

One of those constructor thingies. Defined so that you can initialize all the thingies in the item class

Update ( GameTime gameTime, Pantheon gameReference ) : void

An update function to be called only on equipped items. Takes care of time sensitive functionality.

activate ( Pantheon gameReference, CharacterEntity holder ) : void

The super ambiguous function designed to be super ambiguous. Basically, call this function for some random object to do some random thing. See? Super ambiguous.

메소드 상세

Item() 공개 메소드

public Item ( ) : System
리턴 System

Item() 공개 메소드

One of those constructor thingies. Defined so that you can initialize all the thingies in the item class
public Item ( Microsoft.Xna.Framework.Graphics.Texture2D HUDrep ) : System
HUDrep Microsoft.Xna.Framework.Graphics.Texture2D
리턴 System

Update() 공개 메소드

An update function to be called only on equipped items. Takes care of time sensitive functionality.
public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time for each update.
gameReference Pantheon A reference to the entire game.
리턴 void

activate() 공개 메소드

The super ambiguous function designed to be super ambiguous. Basically, call this function for some random object to do some random thing. See? Super ambiguous.
public activate ( Pantheon gameReference, CharacterEntity holder ) : void
gameReference Pantheon A supremely useful reference to everything, just in case you need it.
holder CharacterEntity A reference to the character holding the weapon.
리턴 void

프로퍼티 상세

HUDRepresentation 공개적으로 프로퍼티

The representation of the item on the HUD. For the moment, this is the same as the representation in the inventory. That could change.
public Texture2D,Microsoft.Xna.Framework.Graphics HUDRepresentation
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

info 보호되어 있는 프로퍼티

protected String info
리턴 String

isNull 공개적으로 프로퍼티

public bool isNull
리턴 bool

itemTag 보호되어 있는 프로퍼티

protected String itemTag
리턴 String

soundCueName 공개적으로 프로퍼티

public string soundCueName
리턴 string

type 공개적으로 프로퍼티

public int type
리턴 int