exchange the tabs with withspaces
This commit is contained in:
parent
6a847a0718
commit
a76fd69267
@ -14,9 +14,9 @@ class Base: GKEntity {
|
|||||||
|
|
||||||
var unitCount: Int
|
var unitCount: Int
|
||||||
var adjacencyList: Array<Base>
|
var adjacencyList: Array<Base>
|
||||||
var changeOwnerShip: Bool
|
var changeOwnerShip: Bool
|
||||||
var ownerShipPlayer: GKPlayer?
|
var ownerShipPlayer: GKPlayer?
|
||||||
|
|
||||||
init(position: CGPoint, player: GKPlayer! = nil, team: Team! = nil) {
|
init(position: CGPoint, player: GKPlayer! = nil, team: Team! = nil) {
|
||||||
self.unitCount = 0
|
self.unitCount = 0
|
||||||
self.adjacencyList = [Base]()
|
self.adjacencyList = [Base]()
|
||||||
@ -31,7 +31,7 @@ class Base: GKEntity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func attackBase(base: Base, units:Int) -> [GKEntity]{
|
func attackBase(base: Base, units:Int) -> [GKEntity]{
|
||||||
base.changeOwnerShip = true
|
base.changeOwnerShip = true
|
||||||
base.ownerShipPlayer = self.ownerShipPlayer
|
base.ownerShipPlayer = self.ownerShipPlayer
|
||||||
self.unitCount -= units
|
self.unitCount -= units
|
||||||
|
Loading…
Reference in New Issue
Block a user