Do some polishing

This commit is contained in:
Marcel Schwarz 2020-05-02 21:51:31 +02:00
parent 0dbcbe5eb0
commit 7fc4a5145f
3 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class Base : GKEntity {
init(position: CGPoint, team: Team! = nil) {
self.unitCount = 0
self.adjacencyList = Array<Base>()
self.adjacencyList = [Base]()
super.init()

View File

@ -69,7 +69,7 @@ class TwoPlayerDefaultTestMap: MapProtocol {
basePlayerTwo.adjacencyList.append(contentsOf: column3)
// Add Bases to GameScene
// Register bases with the EntityManager
entityManager.add(basePlayerOne)
column1.forEach({base in entityManager.add(base)})

View File

@ -33,7 +33,6 @@ class GameScene: SKScene{
}
}
// TODO: Issue #24 create Map generation Service
func initMap() {
MapFactory(scene: self, entityManager: self.entityManager).loadMap(playerCount: 2)
}