Files
assaultcube-/source/src/bot/ac_bot.h
T
2015-06-21 10:34:07 +02:00

50 lines
941 B
C++

//
// C++ Implementation: bot
//
// Description:
//
// Header specific for AC_CUBE
//
// Author: Rick <[email protected]>
//
//
//
#ifndef AC_BOT_H
#define AC_BOT_H
//#define BOTDEBUG
#define MAX_WEAPONS 10
class CACBot: public CBot
{
public:
friend class CBotManager;
friend class CWaypointClass;
virtual void CheckItemPickup(void);
// AI Functions
virtual bool ChoosePreferredWeapon(void);
void Reload(int Gun);
virtual entity *SearchForEnts(bool bUseWPs, float flRange=9999.0f,
float flMaxHeight=JUMP_HEIGHT);
virtual bool HeadToTargetEnt(void);
virtual bool DoSPStuff(void);
virtual void Spawn(void);
};
inline void AddScreenText(const char *t, ...) {} // UNDONE
inline void AddDebugText(const char *t, ...)
{
#if defined(_DEBUG) && defined(BOTDEBUG)
va_list v;
va_start(v, t);
conoutf(t,v);
va_end(v);
#endif
}
#endif