C# Class TrueCraft.Client.TrueCraftGame

Inheritance: Game
Show file Open project: Pr0methean/NewCraft Class Usage Examples

Public Properties

Property Type Description
Reach int

Private Properties

Property Type Description
CreateRenderTarget void
OnGamePadButtonDown void
OnGamePadButtonUp void
OnKeyboardKeyDown void
OnKeyboardKeyUp void
OnMouseComponentButtonDown void
OnMouseComponentButtonUp void
OnMouseComponentMove void
OnMouseComponentScroll void
UpdateCamera void

Public Methods

Method Description
FlushMainThreadActions ( ) : void
HandleClientPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
Invoke ( Action action ) : void
TakeScreenshot ( ) : void
TrueCraftGame ( MultiplayerClient client, IPEndPoint endPoint ) : System
Window_ClientSizeChanged ( object sender, EventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Draw ( GameTime gameTime ) : void
Initialize ( ) : void
LoadContent ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
CreateRenderTarget ( ) : void
OnGamePadButtonDown ( object sender, GamePadButtonEventArgs e ) : void
OnGamePadButtonUp ( object sender, GamePadButtonEventArgs e ) : void
OnKeyboardKeyDown ( object sender, KeyboardKeyEventArgs e ) : void
OnKeyboardKeyUp ( object sender, KeyboardKeyEventArgs e ) : void
OnMouseComponentButtonDown ( object sender, MouseButtonEventArgs e ) : void
OnMouseComponentButtonUp ( object sender, MouseButtonEventArgs e ) : void
OnMouseComponentMove ( object sender, MouseMoveEventArgs e ) : void
OnMouseComponentScroll ( object sender, MouseScrollEventArgs e ) : void
UpdateCamera ( ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() protected method

protected Draw ( GameTime gameTime ) : void
gameTime GameTime
return void

FlushMainThreadActions() public method

public FlushMainThreadActions ( ) : void
return void

HandleClientPropertyChanged() public method

public HandleClientPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object
e PropertyChangedEventArgs
return void

Initialize() protected method

protected Initialize ( ) : void
return void

Invoke() public method

public Invoke ( Action action ) : void
action Action
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

TakeScreenshot() public method

public TakeScreenshot ( ) : void
return void

TrueCraftGame() public method

public TrueCraftGame ( MultiplayerClient client, IPEndPoint endPoint ) : System
client MultiplayerClient
endPoint IPEndPoint
return System

Update() protected method

protected Update ( GameTime gameTime ) : void
gameTime GameTime
return void

Window_ClientSizeChanged() public method

public Window_ClientSizeChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Property Details

Reach public static property

public static int Reach
return int