itemgate.h 653 B

12345678910111213141516171819202122232425262728293031
  1. class idItemGate : public idStaticEntity
  2. {
  3. public:
  4. CLASS_PROTOTYPE( idItemGate );
  5. void Save( idSaveGame *savefile ) const;
  6. void Restore( idRestoreGame *savefile );
  7. void Spawn( void );
  8. virtual void Think( void );
  9. private:
  10. int nextTriggerTime;
  11. idVec3 throwDir;
  12. idVec3 throwDestination;
  13. idStr className;
  14. idStr weaponName;
  15. idStr callName;
  16. int force;
  17. bool hasFoundTarget;
  18. bool isOn;
  19. void Event_staticactivate( int value );
  20. void Event_Touch( idEntity *other, trace_t *trace );
  21. void repel(idEntity *ent);
  22. int nextHitSoundTime;
  23. };