C# Class PrinceGame.PrinceOfPersiaGame

Inheritance: GameScreen
显示文件 Open project: salvadorc17/Prince-Monogame

Public Properties

Property Type Description
CONFIG_DEBUG bool
CONFIG_FRAMERATE float
CONFIG_ITEMS string
CONFIG_KID_START_ENERGY int
CONFIG_PATH_APOPLEXY string
CONFIG_PATH_CONTENT string
CONFIG_PATH_LEVELS string
CONFIG_PATH_ROOMS string
CONFIG_PATH_SEQUENCES string
CONFIG_SCREEN_HEIGHT int
CONFIG_SCREEN_WIDTH int
CONFIG_SONGS string
CONFIG_SOUNDS string
CONFIG_SPRITE_EFFECTS string
CONFIG_SPRITE_GUARD string
CONFIG_SPRITE_KID string
CONFIG_SPRITE_SERPENT string
CONFIG_SPRITE_SKELETON string
CONFIG_TILES string[]
enemy_energy Microsoft.Xna.Framework.Graphics.Texture2D
enemy_livePoints Microsoft.Xna.Framework.Graphics.Texture2D
player_energy Microsoft.Xna.Framework.Graphics.Texture2D
player_livePoints Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Activate ( bool instancePreserved ) : void

Load graphics content for the game.

Deactivate ( ) : void
Draw ( GameTime gameTime ) : void

Draws the game from background to foreground.

HandleInput ( GameTime gameTime, InputState input ) : void
PrinceOfPersiaGame ( ) : System
Unload ( ) : void

Unload graphics content used by the game.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Protected Methods

Method Description
LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

Private Methods

Method Description
DrawBackground ( ) : void
DrawBottom ( ) : void
DrawDebug ( RoomNew room ) : void
DrawHud ( ) : void
DrawShadowedString ( SpriteFont font, string value, Vector2 position, Color color__1 ) : void
RetrieveLinkerTimestamp ( ) : System.DateTime

Method Details

Activate() public method

Load graphics content for the game.
public Activate ( bool instancePreserved ) : void
instancePreserved bool
return void

Deactivate() public method

public Deactivate ( ) : void
return void

Draw() public method

Draws the game from background to foreground.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

HandleInput() public method

public HandleInput ( GameTime gameTime, InputState input ) : void
gameTime Microsoft.Xna.Framework.GameTime
input InputState
return void

LoadContent() protected method

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
return void

PrinceOfPersiaGame() public method

public PrinceOfPersiaGame ( ) : System
return System

Unload() public method

Unload graphics content used by the game.
public Unload ( ) : void
return void

Update() public method

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
otherScreenHasFocus bool
coveredByOtherScreen bool
return void

Property Details

CONFIG_DEBUG public_oe static_oe property

public static bool CONFIG_DEBUG
return bool

CONFIG_FRAMERATE public_oe static_oe property

public static float CONFIG_FRAMERATE
return float

CONFIG_ITEMS public_oe static_oe property

public static string CONFIG_ITEMS
return string

CONFIG_KID_START_ENERGY public_oe static_oe property

public static int CONFIG_KID_START_ENERGY
return int

CONFIG_PATH_APOPLEXY public_oe static_oe property

public static string CONFIG_PATH_APOPLEXY
return string

CONFIG_PATH_CONTENT public_oe static_oe property

public static string CONFIG_PATH_CONTENT
return string

CONFIG_PATH_LEVELS public_oe static_oe property

public static string CONFIG_PATH_LEVELS
return string

CONFIG_PATH_ROOMS public_oe static_oe property

public static string CONFIG_PATH_ROOMS
return string

CONFIG_PATH_SEQUENCES public_oe static_oe property

public static string CONFIG_PATH_SEQUENCES
return string

CONFIG_SCREEN_HEIGHT public_oe static_oe property

public static int CONFIG_SCREEN_HEIGHT
return int

CONFIG_SCREEN_WIDTH public_oe static_oe property

public static int CONFIG_SCREEN_WIDTH
return int

CONFIG_SONGS public_oe static_oe property

public static string CONFIG_SONGS
return string

CONFIG_SOUNDS public_oe static_oe property

public static string CONFIG_SOUNDS
return string

CONFIG_SPRITE_EFFECTS public_oe static_oe property

public static string CONFIG_SPRITE_EFFECTS
return string

CONFIG_SPRITE_GUARD public_oe static_oe property

public static string CONFIG_SPRITE_GUARD
return string

CONFIG_SPRITE_KID public_oe static_oe property

public static string CONFIG_SPRITE_KID
return string

CONFIG_SPRITE_SERPENT public_oe static_oe property

public static string CONFIG_SPRITE_SERPENT
return string

CONFIG_SPRITE_SKELETON public_oe static_oe property

public static string CONFIG_SPRITE_SKELETON
return string

CONFIG_TILES public_oe static_oe property

public static string[] CONFIG_TILES
return string[]

enemy_energy public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics enemy_energy
return Microsoft.Xna.Framework.Graphics.Texture2D

enemy_livePoints public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics enemy_livePoints
return Microsoft.Xna.Framework.Graphics.Texture2D

player_energy public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics player_energy
return Microsoft.Xna.Framework.Graphics.Texture2D

player_livePoints public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics player_livePoints
return Microsoft.Xna.Framework.Graphics.Texture2D