C# Class XNAInterfaceComponents.Managers.ComponentManager

Inheritance: Drawable, MouseClickListener, MouseMotionListener
Mostrar archivo Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void

Draws all panels

GetInstance ( ) : ComponentManager
OnMouseClick ( MouseEvent m_event ) : void
OnMouseDrag ( MouseEvent e ) : void
OnMouseMotion ( MouseEvent e ) : void
OnMouseRelease ( MouseEvent m_event ) : void
QueueLoad ( ParentComponent component ) : void

Queues the element for loading by the mananger.

QueueUnload ( ParentComponent component ) : void

Queues the element for unloading by the manager.

SortComponentsByZ ( LinkedList toSort, System.Boolean asc ) : LinkedList

Sorts a linked list of components by their Z value.

SortComponentsByZ ( LinkedList toSort, System.Boolean asc ) : LinkedList

Sorts a linked list of components by their Z value.

UnloadAllPanels ( ) : void

Unloads all panels.

Update ( ) : void

Updates all the panels.

Private Methods

Method Description
ComponentManager ( ) : System
FireMouseExitEvents ( MouseEvent e ) : void

Fire mouse exit events on those that currently have mouse over.

Method Details

Draw() public method

Draws all panels
public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch The spritebatch to draw on.
return void

GetInstance() public static method

public static GetInstance ( ) : ComponentManager
return ComponentManager

OnMouseClick() public method

public OnMouseClick ( MouseEvent m_event ) : void
m_event MouseEvent
return void

OnMouseDrag() public method

public OnMouseDrag ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseMotion() public method

public OnMouseMotion ( MouseEvent e ) : void
e MouseEvent
return void

OnMouseRelease() public method

public OnMouseRelease ( MouseEvent m_event ) : void
m_event MouseEvent
return void

QueueLoad() public method

Queues the element for loading by the mananger.
public QueueLoad ( ParentComponent component ) : void
component XNAInterfaceComponents.AbstractComponents.ParentComponent The component to load.
return void

QueueUnload() public method

Queues the element for unloading by the manager.
public QueueUnload ( ParentComponent component ) : void
component XNAInterfaceComponents.AbstractComponents.ParentComponent The component to unload
return void

SortComponentsByZ() public method

Sorts a linked list of components by their Z value.
public SortComponentsByZ ( LinkedList toSort, System.Boolean asc ) : LinkedList
toSort LinkedList The list to sort.
asc System.Boolean
return LinkedList

SortComponentsByZ() public method

Sorts a linked list of components by their Z value.
public SortComponentsByZ ( LinkedList toSort, System.Boolean asc ) : LinkedList
toSort LinkedList The list to sort.
asc System.Boolean
return LinkedList

UnloadAllPanels() public method

Unloads all panels.
public UnloadAllPanels ( ) : void
return void

Update() public method

Updates all the panels.
public Update ( ) : void
return void