C# Class PrinceGame.PrinceOfPersiaGame

Inheritance: GameScreen
Afficher le fichier Open project: salvadorc17/Prince-Monogame

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
LoadContent ( ) : void

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

Private Methods

Méthode 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 méthode

Load graphics content for the game.
public Activate ( bool instancePreserved ) : void
instancePreserved bool
Résultat void

Deactivate() public méthode

public Deactivate ( ) : void
Résultat void

Draw() public méthode

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

HandleInput() public méthode

public HandleInput ( GameTime gameTime, InputState input ) : void
gameTime Microsoft.Xna.Framework.GameTime
input InputState
Résultat void

LoadContent() protected méthode

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

PrinceOfPersiaGame() public méthode

public PrinceOfPersiaGame ( ) : System
Résultat System

Unload() public méthode

Unload graphics content used by the game.
public Unload ( ) : void
Résultat void

Update() public méthode

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
Résultat void

Property Details

CONFIG_DEBUG public_oe static_oe property

public static bool CONFIG_DEBUG
Résultat bool

CONFIG_FRAMERATE public_oe static_oe property

public static float CONFIG_FRAMERATE
Résultat float

CONFIG_ITEMS public_oe static_oe property

public static string CONFIG_ITEMS
Résultat string

CONFIG_KID_START_ENERGY public_oe static_oe property

public static int CONFIG_KID_START_ENERGY
Résultat int

CONFIG_PATH_APOPLEXY public_oe static_oe property

public static string CONFIG_PATH_APOPLEXY
Résultat string

CONFIG_PATH_CONTENT public_oe static_oe property

public static string CONFIG_PATH_CONTENT
Résultat string

CONFIG_PATH_LEVELS public_oe static_oe property

public static string CONFIG_PATH_LEVELS
Résultat string

CONFIG_PATH_ROOMS public_oe static_oe property

public static string CONFIG_PATH_ROOMS
Résultat string

CONFIG_PATH_SEQUENCES public_oe static_oe property

public static string CONFIG_PATH_SEQUENCES
Résultat string

CONFIG_SCREEN_HEIGHT public_oe static_oe property

public static int CONFIG_SCREEN_HEIGHT
Résultat int

CONFIG_SCREEN_WIDTH public_oe static_oe property

public static int CONFIG_SCREEN_WIDTH
Résultat int

CONFIG_SONGS public_oe static_oe property

public static string CONFIG_SONGS
Résultat string

CONFIG_SOUNDS public_oe static_oe property

public static string CONFIG_SOUNDS
Résultat string

CONFIG_SPRITE_EFFECTS public_oe static_oe property

public static string CONFIG_SPRITE_EFFECTS
Résultat string

CONFIG_SPRITE_GUARD public_oe static_oe property

public static string CONFIG_SPRITE_GUARD
Résultat string

CONFIG_SPRITE_KID public_oe static_oe property

public static string CONFIG_SPRITE_KID
Résultat string

CONFIG_SPRITE_SERPENT public_oe static_oe property

public static string CONFIG_SPRITE_SERPENT
Résultat string

CONFIG_SPRITE_SKELETON public_oe static_oe property

public static string CONFIG_SPRITE_SKELETON
Résultat string

CONFIG_TILES public_oe static_oe property

public static string[] CONFIG_TILES
Résultat string[]

enemy_energy public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics enemy_energy
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

enemy_livePoints public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics enemy_livePoints
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

player_energy public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics player_energy
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

player_livePoints public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics player_livePoints
Résultat Microsoft.Xna.Framework.Graphics.Texture2D