C# Класс 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.
Наследование: IWindowItem, IMousePositionListener, IMouseClickListener
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Draw() публичный Метод

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
Результат void

MiniMap() публичный Метод

public MiniMap ( Director &director, Texture2D minimapTexture ) : System.Collections.Generic
director Director
minimapTexture Texture2D
Результат System.Collections.Generic

MouseButtonClicked() публичный Метод

public MouseButtonClicked ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
Результат bool

MouseButtonPressed() публичный Метод

public MouseButtonPressed ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
Результат bool

MouseButtonReleased() публичный Метод

public MouseButtonReleased ( EMouseAction mouseAction, bool withinBounds ) : bool
mouseAction EMouseAction
withinBounds bool
Результат bool

MousePositionChanged() публичный Метод

public MousePositionChanged ( float screenX, float screenY, float worldX, float worldY ) : void
screenX float
screenY float
worldX float
worldY float
Результат void

Update() публичный Метод

public Update ( GameTime gametime ) : void
gametime GameTime
Результат void