mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
transporting units overseas to multiple spawn points
This commit is contained in:
@@ -28,16 +28,9 @@ namespace vb01{
|
||||
namespace battleship{
|
||||
class Player;
|
||||
class Weapon;
|
||||
class Unit;
|
||||
class Vehicle;
|
||||
class Vehicle;
|
||||
class Structure;
|
||||
class Factory;
|
||||
class Cruiser;
|
||||
class Engineer;
|
||||
class PointDefense;
|
||||
class Projectile;
|
||||
class GameObject;
|
||||
class Vehicle;
|
||||
class Projectile;
|
||||
|
||||
struct Order {
|
||||
enum class TYPE {ATTACK, BUILD, MOVE, GARRISON, EJECT, PATROL, LAUNCH, SUPPLY, LOAD, UNLOAD, HACK};
|
||||
@@ -122,13 +115,6 @@ namespace battleship{
|
||||
int getNumFreeGarrisonSlots();
|
||||
inline void setState(State s){state = s;}
|
||||
inline State getState(){return state;}
|
||||
inline Vehicle* toVehicle(){return (Vehicle*)this;}
|
||||
inline Engineer* toEngineer(){return (Engineer*)this;}
|
||||
inline Structure* toStructure(){return (Structure*)this;}
|
||||
inline Factory* toFactory(){return (Factory*)this;}
|
||||
inline Cruiser* toCruiser(){return (Cruiser*)this;}
|
||||
inline PointDefense* toPointDefense(){return (PointDefense*)this;}
|
||||
inline GameObject* toGameObject(){return (GameObject*)this;}
|
||||
inline int getNumGarrisonSlots(){return garrisonSlots.size();}
|
||||
inline bool isGarrisonEmpty(){return getNumFreeGarrisonSlots() == getNumGarrisonSlots();}
|
||||
inline const std::vector<GarrisonSlot>& getGarrisonSlots(){return garrisonSlots;}
|
||||
|
||||
Reference in New Issue
Block a user