C# Class PantheonPrototype.Inventory

This class keeps track of inventory stuff.
Mostrar archivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Public Properties

Property Type Description
equippedBoxes List
infoBox Microsoft.Xna.Framework.Rectangle
locationBoxes List
movingBox Microsoft.Xna.Framework.Rectangle
tempStorage Item
types List

Protected Properties

Property 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

Public Methods

Method 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

Method Description
SetBoxes ( ) : void

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

Method Details

Draw() public method

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

Inventory() public method

public Inventory ( int SCREEN_WIDTH, int SCREEN_HEIGHT, Pantheon gameReference ) : System
SCREEN_WIDTH int
SCREEN_HEIGHT int
gameReference Pantheon
return System

Move() public method

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

Property Details

equippedBoxes public_oe property

public List equippedBoxes
return List

infoBox public_oe property

public Rectangle,Microsoft.Xna.Framework infoBox
return Microsoft.Xna.Framework.Rectangle

inventorySelector protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics inventorySelector
return Microsoft.Xna.Framework.Graphics.Texture2D

locationBoxes public_oe property

public List locationBoxes
return List

movingBox public_oe property

public Rectangle,Microsoft.Xna.Framework movingBox
return Microsoft.Xna.Framework.Rectangle

nullImage protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics nullImage
return Microsoft.Xna.Framework.Graphics.Texture2D

tempStorage public_oe property

public Item tempStorage
return Item

trashBox protected_oe property

protected Rectangle,Microsoft.Xna.Framework trashBox
return Microsoft.Xna.Framework.Rectangle

trashCan protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics trashCan
return Microsoft.Xna.Framework.Graphics.Texture2D

trashColor protected_oe property

protected Color trashColor
return Color

types public_oe property

public List types
return List