mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
34 lines
962 B
C++
Executable File
34 lines
962 B
C++
Executable File
#pragma once
|
|
#ifndef PLAYER_H
|
|
#define PLAYER_H
|
|
|
|
#include <vector>
|
|
|
|
#include "gameManager.h"
|
|
#include "unit.h"
|
|
|
|
namespace battleship{
|
|
class Player {
|
|
public:
|
|
Player(int, int, vb01::Vector3 = vb01::Vector3::VEC_ZERO);
|
|
~Player();
|
|
void update();
|
|
bool isThisPlayersUnit(Unit*);
|
|
inline void addUnit(Unit *u){units.push_back(u);}
|
|
inline Unit* getUnit(int i){return units[i];}
|
|
inline std::vector<Unit*>& getUnits(){return units;}
|
|
inline void setId(int i){id=i;}
|
|
inline int getId(){return id;}
|
|
inline int getNumberOfUnits(){return units.size();}
|
|
inline int getFaction(){return faction;}
|
|
inline int getSide(){return side;}
|
|
inline vb01::Vector3 getSpawnPoint(){return spawnPoint;}
|
|
private:
|
|
int credits, faction, difficulty,side,id;
|
|
std::vector<Unit*> units;
|
|
vb01::Vector3 spawnPoint;
|
|
};
|
|
}
|
|
|
|
#endif
|