dhewm3-sdk/game/Liquid.h
Daniel Gibson 30391e13f0 Make Hardqore2 build
mostly by fixing missing includes and some other compiler errors,
also fixed some compiler warnings (mostly uninitialized variables)
2018-08-26 23:55:54 +02:00

51 lines
1.1 KiB
C++

#ifdef _WATER_PHYSICS
#ifndef __LIQUID_H__
#define __LIQUID_H__
#include "Entity.h"
#include "physics/Physics_Liquid.h"
/*
===============================================================================
idLiquid
Base class for all liquid object. The entity part of the liquid is
responsible for spawning splashes and sounds to match.
The physics portion is as usual, responsible for the physics.
===============================================================================
*/
class idRenderModelLiquid;
class idLiquid : public idEntity {
public:
CLASS_PROTOTYPE( idLiquid );
void Spawn( void );
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
virtual bool Collide( const trace_t &collision, const idVec3 &velocity );
private:
void Event_Touch( idEntity *other, trace_t *trace );
idPhysics_Liquid physicsObj;
idRenderModelLiquid *model;
const idDeclParticle *splash[3];
const idDeclParticle *waves;
//idStr smokeName;
//idStr soundName;
bool skipSound; //ivan
};
#endif // __LIQUID_H__
#endif // _WATER_PHYSICS