#pragma once #include "MW4.hpp" #include "hudcomp.hpp" namespace MechWarrior4 { class Objective; class HUDTimer : public HUDComponent { protected: typedef HUDComponent inherited; int m_Timer; // which timer in mwmission to use int m_TimeOffset; // time value is subtracted from this to get display time Objective *m_Objective; // where to get text to add bool m_TimeOnLeft; // true if time is on the left, false on the right HUDText *m_Text; void DrawImplementation(void); public: HUDTimer(); ~HUDTimer(); void Timer (int id) { m_Timer = id; } void TimeOffset (int offset) { m_TimeOffset = offset; } void Objective (Objective *obj) { m_Objective = obj; } void TimeOnLeft (bool value) { m_TimeOnLeft = value; } }; }