From 04e55be3949b16628a73fd44dd2898719bf4ad17 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 10 Jun 2020 14:55:04 +0200 Subject: [PATCH] Remove orphan files --- .../Components/AttackActionComponent.swift | 27 ------------------ .../Components/DefaultWayComponent.swift | 28 ------------------- .../GoldWars/Components/SkillComponent.swift | 25 ----------------- .../GoldWars/Components/TimerComponent.swift | 0 4 files changed, 80 deletions(-) delete mode 100644 GoldWars/GoldWars/Components/AttackActionComponent.swift delete mode 100644 GoldWars/GoldWars/Components/DefaultWayComponent.swift delete mode 100644 GoldWars/GoldWars/Components/SkillComponent.swift delete mode 100644 GoldWars/GoldWars/Components/TimerComponent.swift diff --git a/GoldWars/GoldWars/Components/AttackActionComponent.swift b/GoldWars/GoldWars/Components/AttackActionComponent.swift deleted file mode 100644 index ba46e1a..0000000 --- a/GoldWars/GoldWars/Components/AttackActionComponent.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// AttackActionComponent.swift -// GoldWars -// -// Created by Niko Jochim on 03.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import GameplayKit - -class AttackActionComponent: GKComponent { - - - init(unitCount: Int, adjacencyList: Array, position: CGPoint) { - super.init() - } - - required init?(coder: NSCoder) { - fatalError("init(coder:) has not been implemented") - } - - - func action() { - // Not implemented yet - } - -} diff --git a/GoldWars/GoldWars/Components/DefaultWayComponent.swift b/GoldWars/GoldWars/Components/DefaultWayComponent.swift deleted file mode 100644 index 045ac04..0000000 --- a/GoldWars/GoldWars/Components/DefaultWayComponent.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// DefaultWayComponent.swift -// GoldWars -// -// Created by Jakob Haag on 18.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import Foundation -import GameplayKit -import SpriteKit - -class DefaultWayComponent: GKComponent { - var shapeNode: SKShapeNode - - init(pathToDraw: CGMutablePath) { - self.shapeNode = SKShapeNode() - shapeNode.path = pathToDraw - shapeNode.strokeColor = UIColor(red: 0.852, green: 0.649, blue: 0.123, alpha: 1) - shapeNode.lineWidth = 10 - shapeNode.zPosition = 0 - super.init() - } - - required init?(coder aDecoder: NSCoder) { - fatalError("init(coder:) has not been implemented") - } -} diff --git a/GoldWars/GoldWars/Components/SkillComponent.swift b/GoldWars/GoldWars/Components/SkillComponent.swift deleted file mode 100644 index 001aa2a..0000000 --- a/GoldWars/GoldWars/Components/SkillComponent.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// SkillComponent.swift -// GoldWars -// -// Created by Marcel Schwarz on 24.05.20. -// Copyright © 2020 SP2. All rights reserved. -// - -import Foundation -import GameKit -import GameplayKit - -class SkillComponent: GKComponent { - var skillButtonNode: SingeClickButtonNode - - init(textureName: String, text: String, position: CGPoint, isEnabled: Bool, onButtonPress: @escaping () -> ()) { - skillButtonNode = SingeClickButtonNode(textureName: textureName, text: text, isEnabled: isEnabled, position: position, onButtonPress: onButtonPress) - super.init() - } - - required init?(coder: NSCoder) { - fatalError("init(coder:) has not been implemented") - } -} - diff --git a/GoldWars/GoldWars/Components/TimerComponent.swift b/GoldWars/GoldWars/Components/TimerComponent.swift deleted file mode 100644 index e69de29..0000000