mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-04-07 17:04:30 +00:00
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======//
|
|
//
|
|
// Purpose: CTF Spawn Point.
|
|
//
|
|
//=============================================================================//
|
|
#ifndef ENTITY_TFSTART_H
|
|
#define ENTITY_TFSTART_H
|
|
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
class CTeamControlPoint;
|
|
class CTeamControlPointRound;
|
|
|
|
//=============================================================================
|
|
//
|
|
// TF team spawning entity.
|
|
//
|
|
|
|
class CTFTeamSpawn : public CPointEntity
|
|
{
|
|
public:
|
|
DECLARE_CLASS( CTFTeamSpawn, CPointEntity );
|
|
|
|
CTFTeamSpawn();
|
|
|
|
void Activate( void );
|
|
|
|
bool IsDisabled( void ) { return m_bDisabled; }
|
|
void SetDisabled( bool bDisabled ) { m_bDisabled = bDisabled; }
|
|
|
|
// Inputs/Outputs.
|
|
void InputEnable( inputdata_t &inputdata );
|
|
void InputDisable( inputdata_t &inputdata );
|
|
void InputRoundSpawn( inputdata_t &inputdata );
|
|
|
|
int DrawDebugTextOverlays(void);
|
|
|
|
CHandle<CTeamControlPoint> GetControlPoint( void ) { return m_hControlPoint; }
|
|
CHandle<CTeamControlPointRound> GetRoundBlueSpawn( void ) { return m_hRoundBlueSpawn; }
|
|
CHandle<CTeamControlPointRound> GetRoundRedSpawn( void ) { return m_hRoundRedSpawn; }
|
|
|
|
private:
|
|
bool m_bDisabled; // Enabled/Disabled?
|
|
|
|
string_t m_iszControlPointName;
|
|
string_t m_iszRoundBlueSpawn;
|
|
string_t m_iszRoundRedSpawn;
|
|
|
|
CHandle<CTeamControlPoint> m_hControlPoint;
|
|
CHandle<CTeamControlPointRound> m_hRoundBlueSpawn;
|
|
CHandle<CTeamControlPointRound> m_hRoundRedSpawn;
|
|
|
|
DECLARE_DATADESC();
|
|
};
|
|
|
|
#endif // ENTITY_TFSTART_H
|
|
|
|
|