C# Class RTS.Input.Player

Inheritance: RTSEngine.Interfaces.ACInputController, IVisualInputController
Afficher le fichier Open project: RegrowthStudios/VoxelRTS

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Begin ( ) : void
Résultat void

Build() public méthode

public Build ( RTSRenderer renderer ) : void
renderer RTSEngine.Graphics.RTSRenderer
Résultat void

CreateVoxels() public méthode

public CreateVoxels ( VoxAtlas atlas ) : List
atlas Grey.Vox.VoxAtlas
Résultat List

Deserialize() public méthode

public Deserialize ( BinaryReader s ) : void
s System.IO.BinaryReader
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Draw() public méthode

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

Init() public méthode

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

LESave() public méthode

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

OnKeyPress() public méthode

public OnKeyPress ( object sender, KeyEventArgs args ) : void
sender object
args KeyEventArgs
Résultat void

OnKeyRelease() public méthode

public OnKeyRelease ( object sender, KeyEventArgs args ) : void
sender object
args KeyEventArgs
Résultat void

OnMouseMotion() public méthode

public OnMouseMotion ( Vector2 pos, Vector2 disp ) : void
pos Vector2
disp Vector2
Résultat void

OnMousePress() public méthode

public OnMousePress ( Vector2 location, MouseButton b ) : void
location Vector2
b MouseButton
Résultat void

OnMouseRelease() public méthode

public OnMouseRelease ( Vector2 location, MouseButton b ) : void
location Vector2
b MouseButton
Résultat void

OnUIPress() public méthode

public OnUIPress ( Point p, MouseButton b ) : void
p Point
b MouseButton
Résultat void

Player() public méthode

public Player ( ) : System
Résultat System

Serialize() public méthode

public Serialize ( BinaryWriter s ) : void
s System.IO.BinaryWriter
Résultat void

Update() public méthode

public Update ( RTSRenderer renderer, GameState s ) : void
renderer RTSEngine.Graphics.RTSRenderer
s RTSEngine.Data.GameState
Résultat void