diff --git a/GoldWars/GoldWars/Components/WayNode.swift b/GoldWars/GoldWars/Components/WayNode.swift deleted file mode 100644 index 41559a6..0000000 --- a/GoldWars/GoldWars/Components/WayNode.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// WayNode.swift -// GoldWars -// -// Created by Jakob Haag on 18.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import SpriteKit - -class WayNode: SKSpriteNode{ - - override func touchesBegan(_ touches: Set, with event: UIEvent?) { - print("touched Way") - // TODO: PopUp Einheiten + Close PopUp - } - - override func touchesMoved(_ touches: Set, with event: UIEvent?) { - // TODO: zeige Angirff Effect - } - - override func touchesEnded(_ touches: Set, with event: UIEvent?) { - // TODO: Open Slider PopUp - } -} diff --git a/GoldWars/GoldWars/Map/SampleCElement.swift b/GoldWars/GoldWars/Map/SampleCElement.swift deleted file mode 100644 index e71d78c..0000000 --- a/GoldWars/GoldWars/Map/SampleCElement.swift +++ /dev/null @@ -1,123 +0,0 @@ -// -// CElemente.swift -// GoldWars -// -// Created by Jakob Haag on 14.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import Foundation -import SpriteKit - -class SampleCElement : CenterElementProtocol { - var frame: CGRect - var bases: [Base] = [] - var centerBase: Base - - required init(frame: CGRect) { - self.frame = frame - self.centerBase = Base( - position: CGPoint( - x: frame.midX, - y: frame.midY - ) - ) - self.bases.append(centerBase) - } - - func getAllBases() -> [Base] { - return self.bases - } - - func getTopConnection() -> Base? { - return self.centerBase - } - - func getRightConnection() -> Base? { - return self.centerBase - } - - func getBottomConnection() -> Base? { - return self.centerBase - } - - func getLeftConnection() -> Base? { - return self.centerBase - } -} - -// -// CElement7.swift -// GoldWars -// -// Created by Jakob Haag on 14.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import Foundation -import SpriteKit - -class CElement1700 : CenterElementProtocol { - var frame: CGRect - var bases: [Base] = [] - var topBase: Base - var bottomBase: Base - var leftBase: Base - var rightBase: Base - - required init(frame: CGRect) { - self.frame = frame - self.topBase = Base( - position: CGPoint( - x: frame.midX, - y: frame.minY - ) - ) - - self.bottomBase = Base( - position: CGPoint( - x: frame.midX, - y: frame.maxY - ) - ) - - self.leftBase = Base( - position: CGPoint( - x: frame.minX, - y: frame.midY - ) - ) - - self.rightBase = Base( - position: CGPoint( - x: frame.maxX, - y: frame.midY - ) - ) - self.bases.append(topBase) - self.bases.append(bottomBase) - self.bases.append(leftBase) - self.bases.append(rightBase) - } - - func getAllBases() -> [Base] { - return self.bases - } - - func getTopConnection() -> Base? { - return self.topBase - } - - func getRightConnection() -> Base? { - return self.rightBase - } - - func getBottomConnection() -> Base? { - return self.bottomBase - } - - func getLeftConnection() -> Base? { - return self.leftBase - } -} - diff --git a/GoldWars/GoldWars/PlayerMovesService.swift b/GoldWars/GoldWars/PlayerMovesService.swift deleted file mode 100644 index 3c0f41d..0000000 --- a/GoldWars/GoldWars/PlayerMovesService.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// PlayerMovesService.swift -// GoldWars -// -// Created by Tim Herbst on 13.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -struct PlayerMove : Codable{ - let fromBase: Int - let toBase: Int - let unitCount: Int -} - -struct Host: Codable { - let playerName: String -} - -class DataService { - static let sharedInstance = DataService() - var playerMoves: [PlayerMove] = [] - var gameHost: Host? - - - func addMove(playerMove: PlayerMove) { - self.playerMoves.append(playerMove) - } - - func setGameHost(host: Host) { - self.gameHost = host - } -} diff --git a/GoldWars/GoldWars/Storyboards/RoundSimulatorService.swift b/GoldWars/GoldWars/Storyboards/RoundSimulatorService.swift deleted file mode 100644 index 4847831..0000000 --- a/GoldWars/GoldWars/Storyboards/RoundSimulatorService.swift +++ /dev/null @@ -1,13 +0,0 @@ -// -// RoundSimulatorService.swift -// GoldWars -// -// Created by student on 13.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import Foundation - -class RoundSimulatorService { - -}