T2-CPP/CommonAPI/Common/include/DXAPI/Projectile.h

22 lines
448 B
C++

#pragma once
#include <DXAPI/Point3F.h>
#include <DXAPI/GameBase.h>
#include <LinkerAPI.h>
namespace DX
{
class Projectile : public GameBase
{
public:
Projectile(unsigned int obj);
void explode(const Linker::Point3F &position, const Linker::Point3F &normal, const unsigned int collideType);
//! Velocity. It is constant because modifying it directly breaks the sim.
const Point3F velocity;
bool &hidden;
};
} // End NameSpace DX