mirror of
https://gitlab.com/Scribble/gdlenhanced.git
synced 2026-08-17 14:23:04 -04:00
36 lines
757 B
C++
36 lines
757 B
C++
|
|
#pragma once
|
|
|
|
class CGameMode;
|
|
|
|
class CGameMode
|
|
{
|
|
public:
|
|
CGameMode();
|
|
virtual ~CGameMode();
|
|
|
|
virtual const char *GetName() = 0;
|
|
virtual void Think() = 0;
|
|
|
|
virtual void OnRemoveEntity(CWeenieObject *pEntity) = 0;
|
|
virtual void OnTargetAttacked(CWeenieObject *pTarget, CWeenieObject *pSource) = 0;
|
|
};
|
|
|
|
class CGameMode_Tag : public CGameMode
|
|
{
|
|
public:
|
|
CGameMode_Tag();
|
|
virtual ~CGameMode_Tag() override;
|
|
|
|
virtual const char *GetName() override;
|
|
virtual void Think() override;
|
|
|
|
virtual void OnRemoveEntity(CWeenieObject *pEntity) override;
|
|
virtual void OnTargetAttacked(CWeenieObject *pTarget, CWeenieObject *pSource) override;
|
|
|
|
protected:
|
|
void SelectPlayer(CPlayerWeenie * pPlayer);
|
|
void UnselectPlayer();
|
|
|
|
CPlayerWeenie *m_pSelectedPlayer;
|
|
};
|