2005-03-09 01:31:56 +00:00
|
|
|
#ifndef AVHREINFORCEABLE_H
|
|
|
|
#define AVHREINFORCEABLE_H
|
|
|
|
|
|
|
|
#include "util/nowarnings.h"
|
2005-04-01 03:04:57 +00:00
|
|
|
#include "dlls/extdll.h"
|
|
|
|
#include "dlls/util.h"
|
2005-03-09 01:31:56 +00:00
|
|
|
#include "mod/AvHConstants.h"
|
|
|
|
#include "mod/AvHBuildable.h"
|
|
|
|
#include "dlls/cbase.h"
|
|
|
|
#include "mod/AvHMessage.h"
|
|
|
|
#include "mod/AvHSpecials.h"
|
|
|
|
#include "mod/AvHPlayer.h"
|
|
|
|
|
|
|
|
class AvHReinforceable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AvHReinforceable();
|
|
|
|
|
|
|
|
virtual void CueRespawnEffect(AvHPlayer* inPlayer);
|
|
|
|
|
|
|
|
virtual bool GetCanReinforce() const = 0;
|
|
|
|
|
|
|
|
virtual bool GetSpawnLocationForPlayer(CBaseEntity* inPlayer, Vector& outLocation) const = 0;
|
|
|
|
|
|
|
|
virtual AvHTeamNumber GetReinforceTeamNumber() const = 0;
|
|
|
|
|
|
|
|
AvHPlayer* GetReinforcingPlayer();
|
|
|
|
|
|
|
|
virtual float GetReinforceTime() const;
|
|
|
|
|
|
|
|
virtual void ResetEntity(void);
|
|
|
|
|
|
|
|
virtual void UpdateReinforcements();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void ResetReinforcingPlayer(bool inSuccess);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int mReinforcingPlayer;
|
|
|
|
float mLastTimeReinforced;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|