mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
removed many Irrlicht references
This commit is contained in:
+4
-1
@@ -1,10 +1,11 @@
|
||||
#include "player.h"
|
||||
|
||||
using namespace game::core;
|
||||
using namespace vb01;
|
||||
|
||||
namespace game{
|
||||
namespace content{
|
||||
Player::Player(int difficulty, int faction,vector3df spawnPoint) {
|
||||
Player::Player(int difficulty, int faction, Vector3 spawnPoint) {
|
||||
this->difficulty = difficulty;
|
||||
this->faction = faction;
|
||||
this->spawnPoint=spawnPoint;
|
||||
@@ -18,10 +19,12 @@ namespace game{
|
||||
|
||||
bool Player::isThisPlayersUnit(Unit *u) {
|
||||
bool foundUnit = false;
|
||||
|
||||
if (units.size() > 0) {
|
||||
for (int i = 0; i < units.size() && !foundUnit; i++)
|
||||
if (units[i] == u)
|
||||
foundUnit = true;
|
||||
|
||||
return foundUnit;
|
||||
} else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user