Colobot
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ui::CMap Class Reference
Inheritance diagram for Ui::CMap:
Inheritance graph
[legend]

Public Member Functions

bool Create (Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override
 
bool EventProcess (const Event &event) override
 
void Draw () override
 
void UpdateTerrain ()
 
void UpdateTerrain (int bx, int by, int ex, int ey)
 
void SetFixImage (const std::string &filename)
 
bool GetFixImage ()
 
void SetOffset (float ox, float oy)
 
void SetAngle (float angle)
 
void SetMode (int mode)
 
void SetToy (bool bToy)
 
void SetDebug (bool bDebug)
 
void SetZoom (float value)
 
float GetZoom ()
 
void SetEnable (bool bEnable)
 
bool GetEnable ()
 
void SetFloorColor (Gfx::Color color)
 
void SetWaterColor (Gfx::Color color)
 
void FlushObject ()
 
void UpdateObject (CObject *pObj)
 
CObjectDetectObject (Math::Point pos, bool &bInMap)
 
void SetHighlight (CObject *pObj)
 
- Public Member Functions inherited from Ui::CControl
virtual void SetPos (Math::Point pos)
 
virtual Math::Point GetPos ()
 
virtual void SetDim (Math::Point dim)
 
virtual Math::Point GetDim ()
 
virtual bool SetState (int state, bool bState)
 
virtual bool SetState (int state)
 
virtual bool ClearState (int state)
 
virtual bool TestState (int state)
 
virtual int GetState ()
 
virtual void SetIcon (int icon)
 
virtual int GetIcon ()
 
virtual void SetName (std::string name, bool bTooltip=true)
 
virtual std::string GetName ()
 
virtual void SetTextAlign (Gfx::TextAlign mode)
 
virtual int GetTextAlign ()
 
virtual void SetFontSize (float size)
 
virtual float GetFontSize ()
 
virtual void SetFontStretch (float stretch)
 
virtual float GetFontStretch ()
 
virtual void SetFontType (Gfx::FontType font)
 
virtual Gfx::FontType GetFontType ()
 
virtual bool SetTooltip (std::string name)
 
virtual bool GetTooltip (Math::Point pos, std::string &name)
 
virtual void SetFocus (CControl *focusControl)
 
virtual bool GetFocus ()
 
virtual EventType GetEventType ()
 

Protected Member Functions

Math::Point AdjustOffset (Math::Point offset)
 
void SelectObject (Math::Point pos)
 
Math::Point MapInter (Math::Point pos, float dir)
 
void DrawFocus (Math::Point pos, float dir, ObjectType type, MapColor color)
 
void DrawObject (Math::Point pos, float dir, ObjectType type, MapColor color, bool bSelect, bool bHilite)
 
void DrawObjectIcon (Math::Point pos, Math::Point dim, MapColor color, ObjectType type, bool bHilite)
 
void DrawHighlight (Math::Point pos)
 
void DrawTriangle (Math::Point p1, Math::Point p2, Math::Point p3, Math::Point uv1, Math::Point uv2)
 
void DrawPenta (Math::Point p1, Math::Point p2, Math::Point p3, Math::Point p4, Math::Point p5, Math::Point uv1, Math::Point uv2)
 
void DrawVertex (Math::Point uv1, Math::Point uv2, float zoom)
 
- Protected Member Functions inherited from Ui::CControl
void GlintDelete ()
 
void GlintCreate (Math::Point ref, bool bLeft=true, bool bUp=true)
 
void GlintFrame (const Event &event)
 
void DrawPart (int icon, float zoom, float ex)
 
void DrawIcon (Math::Point pos, Math::Point dim, Math::Point uv1, Math::Point uv2, float ex=0.0f)
 
void DrawIcon (Math::Point pos, Math::Point dim, Math::Point uv1, Math::Point uv2, Math::Point corner, float ex)
 
void DrawWarning (Math::Point pos, Math::Point dim)
 
void DrawShadow (Math::Point pos, Math::Point dim, float deep=1.0f)
 
virtual bool Detect (Math::Point pos)
 
std::string GetResourceName (EventType eventType)
 

Protected Attributes

Gfx::CTerrainm_terrain
 
Gfx::CWaterm_water
 
CRobotMainm_main
 
bool m_bEnable
 
float m_time
 
float m_half
 
float m_zoom
 
Math::Point m_offset
 
float m_angle
 
Gfx::Color m_floorColor
 
Gfx::Color m_waterColor
 
MapObject m_map [MAPMAXOBJECT]
 
int m_totalFix
 
int m_totalMove
 
int m_highlightRank
 
Math::Point m_mapPos
 
Math::Point m_mapDim
 
bool m_bRadar
 
std::string m_fixImage
 
int m_mode
 
bool m_bToy
 
bool m_bDebug
 
- Protected Attributes inherited from Ui::CControl
Gfx::CEnginem_engine
 
Gfx::CParticlem_particle
 
CEventQueuem_event
 
CRobotMainm_main
 
CSoundInterfacem_sound
 
CSettingsm_settings
 
Math::Point m_pos
 
Math::Point m_dim
 
int m_icon
 
EventType m_eventType
 
int m_state
 
float m_fontSize
 
float m_fontStretch
 
Gfx::FontType m_fontType
 
Gfx::TextAlign m_textAlign
 
std::string m_name
 
std::string m_tooltip
 
bool m_bFocus
 
bool m_bCapture
 
bool m_bGlint
 
Math::Point m_glintCorner1
 
Math::Point m_glintCorner2
 
float m_glintProgress
 
Math::Point m_glintMouse
 

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