removed many Irrlicht references

This commit is contained in:
devZoGok
2021-10-31 15:13:47 +02:00
parent 0e236a44d6
commit b18b2fe9a8
70 changed files with 1822 additions and 1529 deletions
+4 -1
View File
@@ -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;