etqw-sdk/source/game/decls/DeclQuickChat.h
2008-05-29 00:00:00 +00:00

35 lines
1.1 KiB
C++

// Copyright (C) 2007 Id Software, Inc.
//
#ifndef __DECLQUICKCHAT_H__
#define __DECLQUICKCHAT_H__
class sdDeclQuickChat : public idDecl {
public:
sdDeclQuickChat( void );
virtual ~sdDeclQuickChat( void );
virtual const char* DefaultDefinition( void ) const;
virtual bool Parse( const char *text, const int textLength );
virtual void FreeData( void );
const idSoundShader* GetAudio( void ) const { return audio; }
const sdDeclLocStr* GetText( void ) const { return text; }
bool IsTeam( void ) const { return team; }
bool IsFireTeam( void ) const { return fireteam; }
const char* GetCallback( void ) const { return callback; }
int GetType( void ) const { return type; }
bool Check( idEntity* main, idEntity* other ) const { return requirements.Check( main, other ); }
protected:
const sdDeclLocStr* text;
const idSoundShader* audio;
bool team;
bool fireteam;
idStr callback;
int type;
sdRequirementContainer requirements;
};
#endif // __DECLQUICKCHAT_H__