C# Class Singularity.Map.MiniMap

The idea for the MiniMap is to show the whole map at all times, but with simplified means. For example: platforms are represented with dots, as are military units (in the future). The original idea was to put EVERYTHING on the minimap, roads, resources, enemy units, enemy buildings, etc. The "true" purpose of a minimap is to be able to see everything at once at first glance without having to move the games camera to that exact location.
Inheritance: IWindowItem, IMousePositionListener, IMouseClickListener
Exibir arquivo Open project: SoPra18-07/Singularity

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
MiniMap ( Director &director, Texture2D minimapTexture ) : System.Collections.Generic
MouseButtonClicked ( EMouseAction mouseAction, bool withinBounds ) : bool
MouseButtonPressed ( EMouseAction mouseAction, bool withinBounds ) : bool
MouseButtonReleased ( EMouseAction mouseAction, bool withinBounds ) : bool
MousePositionChanged ( float screenX, float screenY, float worldX, float worldY ) : void
Update ( GameTime gametime ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
return void

MiniMap() public method

public MiniMap ( Director &director, Texture2D minimapTexture ) : System.Collections.Generic
director Director
minimapTexture Texture2D
return System.Collections.Generic

MouseButtonClicked() public method

public MouseButtonClicked ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
return bool

MouseButtonPressed() public method

public MouseButtonPressed ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
return bool

MouseButtonReleased() public method

public MouseButtonReleased ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
return bool

MousePositionChanged() public method

public MousePositionChanged ( float screenX, float screenY, float worldX, float worldY ) : void
screenX float
screenY float
worldX float
worldY float
return void

Update() public method

public Update ( GameTime gametime ) : void
gametime GameTime
return void