18#ifndef INCLUDED_ICMPMINIMAP
19#define INCLUDED_ICMPMINIMAP
43 virtual bool CheckPing(
double currentTime,
double pingDuration) = 0;
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
A simple fixed-point number class.
Definition: Fixed.h:120
Per-unit minimap data.
Definition: ICmpMinimap.h:31
virtual bool GetRenderData(u8 &r, u8 &g, u8 &b, entity_pos_t &x, entity_pos_t &z) const =0
Gets the data for rendering this entity on the minimap.
virtual std::string GetIconPath()=0
Returns a path to icon of this entity.
virtual float GetIconSize()=0
virtual void UpdateColor()=0
Updates the entity's minimap color to match the player color.
virtual bool HasIcon()=0
Returns true if a minimap should have icon of this entity.
virtual bool CheckPing(double currentTime, double pingDuration)=0
Returns true if the entity is actively pinging based on the current time.
Definition: IComponent.h:33
uint8_t u8
Definition: types.h:37