You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// tf_bot_proxy.h |
|
// A Hammer entity that spawns a TFBot and relays events to/from it |
|
// Michael Booth, November 2009 |
|
|
|
#ifndef TF_BOT_PROXY_H |
|
#define TF_BOT_PROXY_H |
|
|
|
|
|
class CTFBot; |
|
class CTFBotActionPoint; |
|
|
|
|
|
class CTFBotProxy : public CPointEntity |
|
{ |
|
DECLARE_CLASS( CTFBotProxy, CPointEntity ); |
|
public: |
|
DECLARE_DATADESC(); |
|
|
|
CTFBotProxy( void ); |
|
virtual ~CTFBotProxy() { } |
|
|
|
void Think( void ); |
|
|
|
// Input |
|
void InputSetTeam( inputdata_t &inputdata ); |
|
void InputSetClass( inputdata_t &inputdata ); |
|
void InputSetMovementGoal( inputdata_t &inputdata ); |
|
void InputSpawn( inputdata_t &inputdata ); |
|
void InputDelete( inputdata_t &inputdata ); |
|
|
|
void OnInjured( void ); |
|
void OnKilled( void ); |
|
void OnAttackingEnemy( void ); |
|
void OnKilledEnemy( void ); |
|
|
|
protected: |
|
// Output |
|
COutputEvent m_onSpawned; |
|
COutputEvent m_onInjured; |
|
COutputEvent m_onKilled; |
|
COutputEvent m_onAttackingEnemy; |
|
COutputEvent m_onKilledEnemy; |
|
|
|
char m_botName[64]; |
|
char m_className[64]; |
|
char m_teamName[64]; |
|
|
|
string_t m_spawnOnStart; |
|
string_t m_actionPointName; |
|
float m_respawnInterval; |
|
|
|
CHandle< CTFBot > m_bot; |
|
CHandle< CTFBotActionPoint > m_moveGoal; |
|
}; |
|
|
|
|
|
#endif // TF_BOT_PROXY_H
|
|
|