C# Class _3D_Madness.Game1

Inheritance: Microsoft.Xna.Framework.Game
Show file Open project: Arasho/GR Class Usage Examples

Public Properties

Property 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

Public Methods

Method Description
Game1 ( ) : System

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
LoadContent ( ) : void
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method 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 method

protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Game1() public method

public Game1 ( ) : System
return System

Initialize() protected method

protected Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

UnloadContent() protected method

protected UnloadContent ( ) : void
return void

Update() protected method

protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

CanStone public property

public bool CanStone
return bool

CheckStone public property

public bool CheckStone
return bool

czarnymodel public property

public Texture2D,Microsoft.Xna.Framework.Graphics czarnymodel
return Microsoft.Xna.Framework.Graphics.Texture2D

kbprevious public property

public KeyboardState,Microsoft.Xna.Framework.Input kbprevious
return Microsoft.Xna.Framework.Input.KeyboardState

listOfPlayers public static property

public static List listOfPlayers
return List

putElement public property

public bool putElement
return bool

whereIam public property

public float whereIam
return float

wyniki public static property

public static List wyniki
return List