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

44 lines
1.5 KiB
C++

// Copyright (C) 2007 Id Software, Inc.
//
#ifndef __DECLDEPLOYABLEOBJECT_H__
#define __DECLDEPLOYABLEOBJECT_H__
#include "../../framework/declManager.h"
class sdDeclStringMap;
class sdDeclDeployableObject : public idDecl {
public:
sdDeclDeployableObject( void );
virtual ~sdDeclDeployableObject( void );
virtual const char* DefaultDefinition( void ) const;
virtual bool Parse( const char *text, const int textLength );
virtual void FreeData( void );
const char* GetTitle( void ) const { return title; }
const char* GetGuiTitle( void ) const { return guiTitle; }
const idDeclEntityDef* GetEntityDef( void ) const { return entity; }
const idDeclEntityDef* GetCarrierDef( void ) const { return carrier; }
float GetWaitTime( void ) const { return waitTime; }
const sdDeclStringMap* GetPlacementInfo( void ) const { return placementInfo; }
qhandle_t GetDeploymentMask( void ) const { return mask; }
float GetObjectSize( void ) const { return objectSize; }
static void CacheFromDict( const idDict& dict );
bool AllowRotation( void ) const { return allowRotation; }
private:
float waitTime;
float distanceLimit;
idStr title;
idStr guiTitle;
const idDeclEntityDef* entity;
const idDeclEntityDef* carrier;
const sdDeclStringMap* placementInfo;
qhandle_t mask;
float objectSize;
bool allowRotation;
};
#endif // __DECLDEPLOYABLEOBJECT_H__