diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf/bot/map_entities/tf_bot_hint_entity.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf/bot/map_entities/tf_bot_hint_entity.h')
| -rw-r--r-- | game/server/tf/bot/map_entities/tf_bot_hint_entity.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/game/server/tf/bot/map_entities/tf_bot_hint_entity.h b/game/server/tf/bot/map_entities/tf_bot_hint_entity.h new file mode 100644 index 0000000..af0df70 --- /dev/null +++ b/game/server/tf/bot/map_entities/tf_bot_hint_entity.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// +// +//============================================================================= +#ifndef TF_BOT_HINT_ENTITY_H +#define TF_BOT_HINT_ENTITY_H + +DECLARE_AUTO_LIST( ITFBotHintEntityAutoList ); + +class CBaseTFBotHintEntity : public CPointEntity, public ITFBotHintEntityAutoList +{ + DECLARE_CLASS( CBaseTFBotHintEntity, CPointEntity ); +public: + DECLARE_DATADESC(); + + CBaseTFBotHintEntity( void ); + virtual ~CBaseTFBotHintEntity() { } + + enum HintType + { + HINT_INVALID = -1, + HINT_TELEPORTER_EXIT, + HINT_SENTRYGUN, + HINT_ENGINEER_NEST, + }; + virtual HintType GetHintType() const = 0; + bool IsHintType( HintType hintType ) { return GetHintType() == hintType; } + + bool OwnerObjectHasNoOwner() const; + bool OwnerObjectFinishBuilding() const; + + bool IsEnabled() const; + void InputEnable( inputdata_t &inputdata ); + void InputDisable( inputdata_t &inputdata ); + +private: + + bool m_isDisabled; + HintType m_hintType; +}; + + +inline void CBaseTFBotHintEntity::InputEnable( inputdata_t &inputdata ) +{ + m_isDisabled = false; +} + +inline void CBaseTFBotHintEntity::InputDisable( inputdata_t &inputdata ) +{ + m_isDisabled = true; +} + +inline bool CBaseTFBotHintEntity::IsEnabled() const +{ + return !m_isDisabled; +} + +#endif // TF_BOT_HINT_ENTITY_H |