mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
CPU AI orients fort towards the closest spawnpoint
This commit is contained in:
+10
-2
@@ -12,13 +12,13 @@ namespace battleship{
|
||||
using namespace gameBase;
|
||||
using namespace std;
|
||||
|
||||
Player::Player(int diff, int fac, int t, Vector3 col, bool cpuPl, Vector3 sp, string n) :
|
||||
Player::Player(int diff, int fac, int t, Vector3 col, bool cpuPl, int sp, string n) :
|
||||
difficulty(diff),
|
||||
faction(fac),
|
||||
team(t),
|
||||
color(col),
|
||||
cpuPlayer(cpuPl),
|
||||
spawnPoint(sp),
|
||||
spawnPointId(sp),
|
||||
name("pl"),
|
||||
refineds(30000),
|
||||
trader(new Trader())
|
||||
@@ -212,4 +212,12 @@ namespace battleship{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Player::build(int id, Vector3 pos, Quaternion rot, bool additionalOrder){
|
||||
/*
|
||||
Unit *buildStruct = GameObjectFactory::createUnit(this, id, pos, rot);
|
||||
addUnit(buildStruct);
|
||||
issueOrder(Order::TYPE::BUILD, vector<Order::Target>{Order::Target(buildStruct)}, additionalOrder);
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user