C# Class RTS.Input.Player

Inheritance: RTSEngine.Interfaces.ACInputController, IVisualInputController
ファイルを表示 Open project: RegrowthStudios/VoxelRTS

Public Methods

Method Description
Begin ( ) : void
Build ( RTSRenderer renderer ) : void
CreateVoxels ( VoxAtlas atlas ) : List
Deserialize ( BinaryReader s ) : void
Dispose ( ) : void
Draw ( RTSRenderer renderer, SpriteBatch batch ) : void
Init ( GameState s, int ti, object args ) : void
LESave ( VoxWorld world, int w, int h, DirectoryInfo dir ) : void
OnKeyPress ( object sender, KeyEventArgs args ) : void
OnKeyRelease ( object sender, KeyEventArgs args ) : void
OnMouseMotion ( Vector2 pos, Vector2 disp ) : void
OnMousePress ( Vector2 location, MouseButton b ) : void
OnMouseRelease ( Vector2 location, MouseButton b ) : void
OnUIPress ( Point p, MouseButton b ) : void
Player ( ) : System
Serialize ( BinaryWriter s ) : void
Update ( RTSRenderer renderer, GameState s ) : void

Private Methods

Method Description
ActiveForm_KeyPress ( object sender, System e ) : void
ClosestBuilding ( RTSBuilding b1, RTSBuilding b2 ) : int
Player_OnNewSelection ( ACInputController arg1, List arg2 ) : void
SelectAllWithinFrustum ( BoundingFrustum f ) : void
SelectFromRay ( Microsoft.Xna.Framework.Ray r ) : IEntity
UseSelectionRect ( Vector2 min, Vector2 max ) : bool

Method Details

Begin() public method

public Begin ( ) : void
return void

Build() public method

public Build ( RTSRenderer renderer ) : void
renderer RTSEngine.Graphics.RTSRenderer
return void

CreateVoxels() public method

public CreateVoxels ( VoxAtlas atlas ) : List
atlas Grey.Vox.VoxAtlas
return List

Deserialize() public method

public Deserialize ( BinaryReader s ) : void
s System.IO.BinaryReader
return void

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( RTSRenderer renderer, SpriteBatch batch ) : void
renderer RTSEngine.Graphics.RTSRenderer
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Init() public method

public Init ( GameState s, int ti, object args ) : void
s RTSEngine.Data.GameState
ti int
args object
return void

LESave() public method

public LESave ( VoxWorld world, int w, int h, DirectoryInfo dir ) : void
world Grey.Vox.VoxWorld
w int
h int
dir System.IO.DirectoryInfo
return void

OnKeyPress() public method

public OnKeyPress ( object sender, KeyEventArgs args ) : void
sender object
args KeyEventArgs
return void

OnKeyRelease() public method

public OnKeyRelease ( object sender, KeyEventArgs args ) : void
sender object
args KeyEventArgs
return void

OnMouseMotion() public method

public OnMouseMotion ( Vector2 pos, Vector2 disp ) : void
pos Vector2
disp Vector2
return void

OnMousePress() public method

public OnMousePress ( Vector2 location, MouseButton b ) : void
location Vector2
b MouseButton
return void

OnMouseRelease() public method

public OnMouseRelease ( Vector2 location, MouseButton b ) : void
location Vector2
b MouseButton
return void

OnUIPress() public method

public OnUIPress ( Point p, MouseButton b ) : void
p Point
b MouseButton
return void

Player() public method

public Player ( ) : System
return System

Serialize() public method

public Serialize ( BinaryWriter s ) : void
s System.IO.BinaryWriter
return void

Update() public method

public Update ( RTSRenderer renderer, GameState s ) : void
renderer RTSEngine.Graphics.RTSRenderer
s RTSEngine.Data.GameState
return void