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.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
HUDRepresentation Microsoft.Xna.Framework.Graphics.Texture2D
isNull bool
soundCueName string
type int

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

Свойство Тип Описание
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