18#ifndef INCLUDED_ICMPMINIMAP
19#define INCLUDED_ICMPMINIMAP
45 virtual bool CheckPing(
double currentTime,
double pingDuration) = 0;
A simple fixed-point number class.
Definition: Fixed.h:129
Per-unit minimap data.
Definition: ICmpMinimap.h:32
virtual std::string GetIconPath()=0
Returns a path to icon of this entity.
virtual float GetIconSize()=0
virtual bool GetRenderData(std::uint8_t &r, std::uint8_t &g, std::uint8_t &b, entity_pos_t &x, entity_pos_t &z) const =0
Gets the data for rendering this entity on the minimap.
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
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23