C# Class _3D_Madness.Game1

Inheritance: Microsoft.Xna.Framework.Game
Afficher le fichier Open project: Arasho/GR Class Usage Examples

Méthodes publiques

Свойство Type Description
CanStone bool
CheckStone bool
czarnymodel Microsoft.Xna.Framework.Graphics.Texture2D
kbprevious Microsoft.Xna.Framework.Input.KeyboardState
listOfPlayers List
putElement bool
whereIam float
wyniki List

Méthodes publiques

Méthode Description
Game1 ( ) : System

Méthodes protégées

Méthode Description
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
LoadContent ( ) : void
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Méthode Description
affectCamera ( ) : void

Update camera position.

backFromResults ( ) : void
checkForExit ( ) : void

Implement ability to exit via Escape key.

implementMouseFunctionalities ( ) : void

Implementation of all mouse buttons and behaviors.

initPlayers ( ) : void

Initialization of all players.

initializeGame ( ) : void

Initialization of the game. This method should be called on start.

initializeResults ( ) : void
isLeftButtonClicked ( ) : bool

Checks whether left button of the mouse is clicked.

isRightButtonClicked ( ) : bool

Checks whether right button of the mouse is clicked.

limitCameraAngle ( ) : void

Creates angle limits for the camera.

steerCameraViaKeyboard ( KeyboardState keyboardState ) : void

Implementation of steering camera via keyboard.

steerCameraViaMouse ( ) : void

Implementation of camera steering via mouse movement, especially on screen edges.

zoomBoard ( float speed ) : void

Zooms board

Method Details

Draw() protected méthode

protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Game1() public méthode

public Game1 ( ) : System
Résultat System

Initialize() protected méthode

protected Initialize ( ) : void
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

UnloadContent() protected méthode

protected UnloadContent ( ) : void
Résultat void

Update() protected méthode

protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

CanStone public_oe property

public bool CanStone
Résultat bool

CheckStone public_oe property

public bool CheckStone
Résultat bool

czarnymodel public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics czarnymodel
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

kbprevious public_oe property

public KeyboardState,Microsoft.Xna.Framework.Input kbprevious
Résultat Microsoft.Xna.Framework.Input.KeyboardState

listOfPlayers public_oe static_oe property

public static List listOfPlayers
Résultat List

putElement public_oe property

public bool putElement
Résultat bool

whereIam public_oe property

public float whereIam
Résultat float

wyniki public_oe static_oe property

public static List wyniki
Résultat List