12#ifndef TT_INCLUDE_POWERUPGAMEOBJDEF_H
13#define TT_INCLUDE_POWERUPGAMEOBJDEF_H
14#include "SimpleGameObjDef.h"
17class PowerUpGameObjDef :
public SimpleGameObjDef
20 PowerUpGameObjDef(
void );
21 virtual uint32 Get_Class_ID(
void )
const;
22 virtual PersistClass * Create(
void )
const ;
23 virtual bool Save( ChunkSaveClass &csave );
24 virtual bool Load( ChunkLoadClass &cload );
25 virtual const PersistFactoryClass & Get_Factory(
void )
const;
26 bool Grant( SmartGameObj * obj, PowerUpGameObj * p_powerup = NULL,
bool hud_display =
true )
const ;
27 int Get_Grant_Weapon_ID (
void)
const {
return GrantWeaponID; }
28 bool Is_Persistant()
const {
return Persistent;}
29 bool Is_Always_Allow_Grant()
const {
return AlwaysAllowGrant;}
30 int Get_Grant_Sound()
const {
return GrantSoundID;}
32 virtual void Dump (FileClass &file);
34 DECLARE_EDITABLE (PowerUpGameObjDef, SimpleGameObjDef);
37 float GrantShieldStrength;
38 float GrantShieldStrengthMax;
43 int GrantWeaponRounds;
44 bool GrantWeaponClips;
47 bool AlwaysAllowGrant;
49 StringClass GrantAnimationName;
51 StringClass IdleAnimationName;
52 friend class PowerUpGameObj;
53 friend class PresetDump;
54 bool GrantShieldStrengthMaxIsScaled;
55 bool GrantHealthMaxIsScaled;