mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
26 lines
390 B
C++
26 lines
390 B
C++
#ifndef CRYOGUN_H
|
|
#define CRYOGUN_H
|
|
|
|
#include "weapon.h"
|
|
|
|
#include <util.h>
|
|
|
|
#include <solUtil.h>
|
|
|
|
namespace battleship{
|
|
class Unit;
|
|
|
|
class CryoGun : public Weapon{
|
|
public:
|
|
CryoGun(Unit*, sol::table, int);
|
|
private:
|
|
vb01::s64 lastFreezeTime = 0;
|
|
|
|
void updateTarget(GameObject*);
|
|
inline bool canFreeze(){return vb01::getTime() - lastFreezeTime > rateOfFire;}
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|