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
파일 보기 프로젝트 열기: SoPra18-07/Singularity

공개 메소드들

메소드 설명
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