Revert "Merge branch '33-basisownership-anhand-des-gkplayers' into 'development'"
This reverts merge request !54
This commit is contained in:
parent
bd5d142a43
commit
4189d0f634
@ -8,7 +8,6 @@
|
||||
|
||||
import SpriteKit
|
||||
import GameplayKit
|
||||
import GameKit
|
||||
|
||||
class Base: GKEntity {
|
||||
|
||||
@ -17,7 +16,7 @@ class Base: GKEntity {
|
||||
var changeOwnership: Bool
|
||||
var ownershipPlayer: GKPlayer?
|
||||
|
||||
init(position: CGPoint, player: GKPlayer? = nil, team: Team? = nil) {
|
||||
init(position: CGPoint, team: Team! = nil) {
|
||||
self.unitCount = 0
|
||||
self.adjacencyList = [Base]()
|
||||
self.changeOwnership = false
|
||||
|
@ -18,27 +18,17 @@ class Modal: GKEntity{
|
||||
switch modaltype{
|
||||
case .BaseDetails:
|
||||
addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint))
|
||||
addComponent(ModalContentComponent(
|
||||
header: "Basis Information",
|
||||
addComponent(ModalContentComponent(header: "Basis Information",
|
||||
body: "Diese Basis enthält \(base.unitCount) Einheiten",
|
||||
footer: "",
|
||||
anchorPoint: anchorPoint
|
||||
)
|
||||
)
|
||||
anchorPoint: anchorPoint))
|
||||
case .BaseAttack:
|
||||
addComponent(ModalBackgroundComponent(anchorPoint: anchorPoint))
|
||||
addComponent(SliderComponent(
|
||||
width: 300,
|
||||
position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 80)
|
||||
)
|
||||
)
|
||||
addComponent(ModalContentComponent(
|
||||
header: "Angriff",
|
||||
addComponent(SliderComponent(width: 300, position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 80)))
|
||||
addComponent(ModalContentComponent(header: "Angriff",
|
||||
body: "Schicke \(unitCount / 2) Einheiten",
|
||||
footer: "",
|
||||
anchorPoint: anchorPoint
|
||||
)
|
||||
)
|
||||
anchorPoint: anchorPoint))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user