C# 클래스 PantheonPrototype.Inventory

This class keeps track of inventory stuff.
파일 보기 프로젝트 열기: Bacon41/PantheonPrototype 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
equippedBoxes List
infoBox Microsoft.Xna.Framework.Rectangle
locationBoxes List
movingBox Microsoft.Xna.Framework.Rectangle
tempStorage Item
types List

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
SetBoxes ( ) : void

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

메소드 상세

Draw() 공개 메소드

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

Inventory() 공개 메소드

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

Move() 공개 메소드

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

프로퍼티 상세

equippedBoxes 공개적으로 프로퍼티

public List equippedBoxes
리턴 List

infoBox 공개적으로 프로퍼티

public Rectangle,Microsoft.Xna.Framework infoBox
리턴 Microsoft.Xna.Framework.Rectangle

inventorySelector 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics inventorySelector
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

locationBoxes 공개적으로 프로퍼티

public List locationBoxes
리턴 List

movingBox 공개적으로 프로퍼티

public Rectangle,Microsoft.Xna.Framework movingBox
리턴 Microsoft.Xna.Framework.Rectangle

nullImage 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics nullImage
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

tempStorage 공개적으로 프로퍼티

public Item tempStorage
리턴 Item

trashBox 보호되어 있는 프로퍼티

protected Rectangle,Microsoft.Xna.Framework trashBox
리턴 Microsoft.Xna.Framework.Rectangle

trashCan 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics trashCan
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

trashColor 보호되어 있는 프로퍼티

protected Color trashColor
리턴 Color

types 공개적으로 프로퍼티

public List types
리턴 List