C# Class Game.RTSGameWindow

Inheritance: GameWindow
Mostra file Open project: DarrenHassan/GDM4242-GroupD

Private Properties

Property Type Description
ControlPanelButton_Click void
DoEndSelectMode void
DoRightClickTasks void
DoTaskTargetChooseTasks void
DrawHUD void
GetControlTasks List
GetMapPositionByMouseOnMinimap Vec2
GetRealCameraType CameraType
InitControlPanelButtons void
IsEnableTaskTypeInTasks bool
IsFreeForBuildTaskTargetBuild bool
IsMouseInActiveArea bool
Minimap_RenderUI void
UpdateControlPanel void
UpdateHUD void
UpdateHUDControlIcon void

Public Methods

Method Description
ClearEntitySelection ( ) : void
OnBeforeWorldSave ( ) : void
SetEntitySelected ( Unit entity, bool selected ) : void

Protected Methods

Method Description
OnAttach ( ) : void
OnDetach ( ) : void
OnGetCameraTransform ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : void
OnKeyDown ( KeyEvent e ) : bool
OnKeyUp ( KeyEvent e ) : bool
OnMouseDoubleClick ( EMouseButtons button ) : bool
OnMouseDown ( EMouseButtons button ) : bool
OnMouseMove ( ) : bool
OnMouseUp ( EMouseButtons button ) : bool
OnRender ( ) : void
OnRenderUI ( GuiRenderer renderer ) : void
OnTick ( float delta ) : void

Private Methods

Method Description
ControlPanelButton_Click ( EButton sender ) : void
DoEndSelectMode ( ) : void
DoRightClickTasks ( Vec3 mouseMapPos, Unit mouseOnObject ) : void
DoTaskTargetChooseTasks ( Vec3 mouseMapPos, Unit mouseOnObject ) : void
DrawHUD ( GuiRenderer renderer ) : void
GetControlTasks ( ) : List
GetMapPositionByMouseOnMinimap ( ) : Vec2
GetRealCameraType ( ) : CameraType
InitControlPanelButtons ( ) : void
IsEnableTaskTypeInTasks ( List tasks, AntUnitAI taskType ) : bool
IsFreeForBuildTaskTargetBuild ( Vec3 pos ) : bool
IsMouseInActiveArea ( ) : bool
Minimap_RenderUI ( EControl sender, GuiRenderer renderer ) : void
UpdateControlPanel ( ) : void
UpdateHUD ( ) : void
UpdateHUDControlIcon ( ) : void

Method Details

ClearEntitySelection() public method

public ClearEntitySelection ( ) : void
return void

OnAttach() protected method

protected OnAttach ( ) : void
return void

OnBeforeWorldSave() public method

public OnBeforeWorldSave ( ) : void
return void

OnDetach() protected method

protected OnDetach ( ) : void
return void

OnGetCameraTransform() protected method

protected OnGetCameraTransform ( Vec3 &position, Vec3 &forward, Vec3 &up, Degree &cameraFov ) : void
position Vec3
forward Vec3
up Vec3
cameraFov Degree
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEvent e ) : bool
e KeyEvent
return bool

OnKeyUp() protected method

protected OnKeyUp ( KeyEvent e ) : bool
e KeyEvent
return bool

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( EMouseButtons button ) : bool
button EMouseButtons
return bool

OnMouseDown() protected method

protected OnMouseDown ( EMouseButtons button ) : bool
button EMouseButtons
return bool

OnMouseMove() protected method

protected OnMouseMove ( ) : bool
return bool

OnMouseUp() protected method

protected OnMouseUp ( EMouseButtons button ) : bool
button EMouseButtons
return bool

OnRender() protected method

protected OnRender ( ) : void
return void

OnRenderUI() protected method

protected OnRenderUI ( GuiRenderer renderer ) : void
renderer GuiRenderer
return void

OnTick() protected method

protected OnTick ( float delta ) : void
delta float
return void

SetEntitySelected() public method

public SetEntitySelected ( Unit entity, bool selected ) : void
entity Unit
selected bool
return void