프로퍼티 | 타입 | 설명 | |
---|---|---|---|
HUDcoords | Vector2 | ||
SCREEN_HEIGHT | int | ||
SCREEN_WIDTH | int | ||
background | Microsoft.Xna.Framework.Graphics.Texture2D | ||
backing | Microsoft.Xna.Framework.Graphics.Texture2D | ||
danger | int | ||
font | |||
graphicsDevice | GraphicsDevice | ||
hudItems | List |
메소드 | 설명 | |
---|---|---|
AddItem ( String img, int x, int y, Microsoft.Xna.Framework.Content.ContentManager content ) : void |
This is the method to add more items to the HUD. Accepts a string that defines an image in the preloaded content, X and Y HUD coordinates, and a content manager.
|
|
AddItem ( String text, int x, int y, |
An overload funtion to just draw a string instead of an image. Accepts a string that defines an image in the preloaded content and X and Y HUD coordinates.
|
|
Draw ( |
The method to draw all of the different HUDItems.
|
|
HUD ( GraphicsDevice graphicsDevice, Microsoft.Xna.Framework.Content.ContentManager Content, int WIDTH, int HEIGHT, |
||
Update ( |
The method to update all of the HUDItems' information.
|
public AddItem ( String img, int x, int y, Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
img | String | |
x | int | |
y | int | |
content | Microsoft.Xna.Framework.Content.ContentManager | |
리턴 | void |
public AddItem ( String text, int x, int y, |
||
text | String | |
x | int | |
y | int | |
font | ||
리턴 | void |
public Draw ( |
||
spriteBatch | The object that we will use to draw to the screen. | |
font | ||
리턴 | void |
public HUD ( GraphicsDevice graphicsDevice, Microsoft.Xna.Framework.Content.ContentManager Content, int WIDTH, int HEIGHT, |
||
graphicsDevice | GraphicsDevice | |
Content | Microsoft.Xna.Framework.Content.ContentManager | |
WIDTH | int | |
HEIGHT | int | |
font | ||
리턴 | System |
public Update ( |
||
gameTime | The object that holds all the time information. | |
gameReference | ||
level | ||
리턴 | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics background | ||
리턴 | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Texture2D,Microsoft.Xna.Framework.Graphics backing | ||
리턴 | Microsoft.Xna.Framework.Graphics.Texture2D |
protected SpriteFont,Microsoft.Xna.Framework.Graphics font | ||
리턴 |