mirror of
https://github.com/ENSL/NS.git
synced 2024-11-13 00:24:38 +00:00
04c334c94b
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@15 67975925-1194-0748-b3d5-c16f83f1a3a1
45 lines
957 B
C++
45 lines
957 B
C++
#ifndef AVHREINFORCEABLE_H
|
|
#define AVHREINFORCEABLE_H
|
|
|
|
#include "util/nowarnings.h"
|
|
#include "extdll.h"
|
|
#include "util.h"
|
|
#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
|