C# Class PantheonPrototype.Inventory

This class keeps track of inventory stuff.
Afficher le fichier Open project: Bacon41/PantheonPrototype Class Usage Examples

Méthodes publiques

Свойство Type Description
equippedBoxes List
infoBox Microsoft.Xna.Framework.Rectangle
locationBoxes List
movingBox Microsoft.Xna.Framework.Rectangle
tempStorage Item
types List

Protected Properties

Свойство Type Description
inventorySelector Microsoft.Xna.Framework.Graphics.Texture2D
nullImage Microsoft.Xna.Framework.Graphics.Texture2D
trashBox Microsoft.Xna.Framework.Rectangle
trashCan Microsoft.Xna.Framework.Graphics.Texture2D
trashColor Color

Méthodes publiques

Méthode Description
Draw ( SpriteBatch spriteBatch, SpriteFont Font ) : void
Inventory ( int SCREEN_WIDTH, int SCREEN_HEIGHT, Pantheon gameReference ) : System
Move ( Pantheon gameReference ) : void

Moves item in iventory from one slot to another

Private Methods

Méthode Description
SetBoxes ( ) : void

Basically hardcodes the different square areas for item's HUDrepresentation to go.

Method Details

Draw() public méthode

public Draw ( SpriteBatch spriteBatch, SpriteFont Font ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Font Microsoft.Xna.Framework.Graphics.SpriteFont
Résultat void

Inventory() public méthode

public Inventory ( int SCREEN_WIDTH, int SCREEN_HEIGHT, Pantheon gameReference ) : System
SCREEN_WIDTH int
SCREEN_HEIGHT int
gameReference Pantheon
Résultat System

Move() public méthode

Moves item in iventory from one slot to another
public Move ( Pantheon gameReference ) : void
gameReference Pantheon
Résultat void

Property Details

equippedBoxes public_oe property

public List equippedBoxes
Résultat List

infoBox public_oe property

public Rectangle,Microsoft.Xna.Framework infoBox
Résultat Microsoft.Xna.Framework.Rectangle

inventorySelector protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics inventorySelector
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

locationBoxes public_oe property

public List locationBoxes
Résultat List

movingBox public_oe property

public Rectangle,Microsoft.Xna.Framework movingBox
Résultat Microsoft.Xna.Framework.Rectangle

nullImage protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics nullImage
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

tempStorage public_oe property

public Item tempStorage
Résultat Item

trashBox protected_oe property

protected Rectangle,Microsoft.Xna.Framework trashBox
Résultat Microsoft.Xna.Framework.Rectangle

trashCan protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics trashCan
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

trashColor protected_oe property

protected Color trashColor
Résultat Color

types public_oe property

public List types
Résultat List