Midnight Blue Game and Engine
Public Member Functions | Protected Member Functions | Properties | List of all members
MidnightBlue.GalaxyRenderSystem Class Reference

Renders all information into the main HUD's list box on the hovered star system. Also displays the name of all the star systems planets. More...

Inheritance diagram for MidnightBlue.GalaxyRenderSystem:
Inheritance graph
Collaboration diagram for MidnightBlue.GalaxyRenderSystem:
Collaboration graph

Public Member Functions

 GalaxyRenderSystem (SpriteBatch spriteBatch, ContentManager content)
 Initializes a new instance of the T:MidnightBlue.GalaxyRenderSystem class. More...
 
- Public Member Functions inherited from MB2D.EntityComponent.EntitySystem
 EntitySystem (params Type[] components)
 Initializes a new instance of the T:MB2D.EntityComponent.EntitySystem class. Checks if the passed in types are valid components and if not, all components are deregistered leaving a system that knows about nothing and can't operate on any entities. More...
 
void Run ()
 Runs this systems Process() method on all entities More...
 
void AssociateEntity (Entity entity)
 Associates a new entity with this system. More...
 
void RemoveAssociation (Entity entity)
 Decouples an association with this system More...
 

Protected Member Functions

override void PreProcess ()
 Clears the starsystems info list before processing all entities. More...
 
override void Process (Entity entity)
 Checks for collisions with a star system in the galaxy view and renders any information associated with that star re:planets. More...
 
- Protected Member Functions inherited from MB2D.EntityComponent.EntitySystem
virtual void ProcessingLoop ()
 Executes Process() on all AssociatedEntities. More...
 
void Destroy (Entity entity)
 Adds the specific entity to the destroy list to be cleaned up the next time a system is run More...
 
virtual void PostProcess ()
 Used to cleanup or execute any teardown logic needed More...
 
virtual void PostAssociate (Entity entity)
 Used to define any logic or extra data needed after an entity is associated with the system. More...
 

Properties

List< string > InfoList [get]
 Gets the list of all planets in the star system's information. More...
 
- Properties inherited from MB2D.EntityComponent.EntitySystem
List< EntityAssociatedEntities [get, set]
 Gets or sets the associated entities list. More...
 
List< Type > ValidComponents [get]
 Gets the list of components this system is interested in More...
 
ulong ID [get, set]
 Gets or sets this systems ID mask More...
 
List< EntityDestroyList [get]
 Gets the destroy list. More...
 
EntityAssociation Association [get]
 Gets the systems association level. More...
 

Additional Inherited Members

- Protected Attributes inherited from MB2D.EntityComponent.EntitySystem
Dictionary< ulong, Entity_idEntityMap
 All GUID's of entities this system knows about More...
 
EntityAssociation _associationType
 Defines if this system should be Loose or Strict More...
 

Detailed Description

Renders all information into the main HUD's list box on the hovered star system. Also displays the name of all the star systems planets.

Constructor & Destructor Documentation

§ GalaxyRenderSystem()

MidnightBlue.GalaxyRenderSystem.GalaxyRenderSystem ( SpriteBatch  spriteBatch,
ContentManager  content 
)
inline

Initializes a new instance of the T:MidnightBlue.GalaxyRenderSystem class.

Parameters
spriteBatchSprite batch to draw to.
contentContent to load fonts from.

Member Function Documentation

§ PreProcess()

override void MidnightBlue.GalaxyRenderSystem.PreProcess ( )
inlineprotectedvirtual

Clears the starsystems info list before processing all entities.

Reimplemented from MB2D.EntityComponent.EntitySystem.

§ Process()

override void MidnightBlue.GalaxyRenderSystem.Process ( Entity  entity)
inlineprotectedvirtual

Checks for collisions with a star system in the galaxy view and renders any information associated with that star re:planets.

Parameters
entityEntity to check collisions with.

Implements MB2D.EntityComponent.EntitySystem.

Property Documentation

§ InfoList

List<string> MidnightBlue.GalaxyRenderSystem.InfoList
get

Gets the list of all planets in the star system's information.

The info list.


The documentation for this class was generated from the following file: