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
Afficher le fichier Open project: SoPra18-07/Singularity

Méthodes publiques

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

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
Résultat void

MiniMap() public méthode

public MiniMap ( Director &director, Texture2D minimapTexture ) : System.Collections.Generic
director Director
minimapTexture Texture2D
Résultat System.Collections.Generic

MouseButtonClicked() public méthode

public MouseButtonClicked ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
Résultat bool

MouseButtonPressed() public méthode

public MouseButtonPressed ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
Résultat bool

MouseButtonReleased() public méthode

public MouseButtonReleased ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
Résultat bool

MousePositionChanged() public méthode

public MousePositionChanged ( float screenX, float screenY, float worldX, float worldY ) : void
screenX float
screenY float
worldX float
worldY float
Résultat void

Update() public méthode

public Update ( GameTime gametime ) : void
gametime GameTime
Résultat void