C# Class Infiniminer.States.MainGameState

Inheritance: StateMasher.State
ファイルを表示 Open project: bobisfat/Infiniminer

Public Methods

Method Description
Lightsource ( Vector3 &src, int intensity ) : void
OnCharEntered ( EventInput e ) : void
OnEnter ( string oldState ) : void
OnKeyDown ( Keys key ) : void
OnKeyUp ( Keys key ) : void
OnLeave ( string newState ) : void
OnMouseDown ( MouseButton button, int x, int y ) : void
OnMouseScroll ( int scrollDelta ) : void
OnMouseUp ( MouseButton button, int x, int y ) : void
OnRenderAtEnter ( GraphicsDevice graphicsDevice ) : void
OnRenderAtUpdate ( GraphicsDevice graphicsDevice, GameTime gameTime ) : void
OnUpdate ( GameTime gameTime, KeyboardState keyState, Microsoft.Xna.Framework.Input.MouseState mouseState ) : string

Private Methods

Method Description
HandleInput ( Buttons input ) : void
TryToMoveTo ( Vector3 moveVector, GameTime gameTime ) : bool
UpdatePlayerPosition ( GameTime gameTime, KeyboardState keyState ) : void

Method Details

Lightsource() public method

public Lightsource ( Vector3 &src, int intensity ) : void
src Vector3
intensity int
return void

OnCharEntered() public method

public OnCharEntered ( EventInput e ) : void
e EventInput
return void

OnEnter() public method

public OnEnter ( string oldState ) : void
oldState string
return void

OnKeyDown() public method

public OnKeyDown ( Keys key ) : void
key Keys
return void

OnKeyUp() public method

public OnKeyUp ( Keys key ) : void
key Keys
return void

OnLeave() public method

public OnLeave ( string newState ) : void
newState string
return void

OnMouseDown() public method

public OnMouseDown ( MouseButton button, int x, int y ) : void
button MouseButton
x int
y int
return void

OnMouseScroll() public method

public OnMouseScroll ( int scrollDelta ) : void
scrollDelta int
return void

OnMouseUp() public method

public OnMouseUp ( MouseButton button, int x, int y ) : void
button MouseButton
x int
y int
return void

OnRenderAtEnter() public method

public OnRenderAtEnter ( GraphicsDevice graphicsDevice ) : void
graphicsDevice GraphicsDevice
return void

OnRenderAtUpdate() public method

public OnRenderAtUpdate ( GraphicsDevice graphicsDevice, GameTime gameTime ) : void
graphicsDevice GraphicsDevice
gameTime Microsoft.Xna.Framework.GameTime
return void

OnUpdate() public method

public OnUpdate ( GameTime gameTime, KeyboardState keyState, Microsoft.Xna.Framework.Input.MouseState mouseState ) : string
gameTime Microsoft.Xna.Framework.GameTime
keyState Microsoft.Xna.Framework.Input.KeyboardState
mouseState Microsoft.Xna.Framework.Input.MouseState
return string