Bladeren bron

make true directory

igorbat99 6 jaren geleden
bovenliggende
commit
39135f7797
4 gewijzigde bestanden met toevoegingen van 83 en 75 verwijderingen
  1. 31 31
      include/skills/effect.h
  2. 44 44
      include/skills/spell.h
  3. 4 0
      source/skills/effect.cpp
  4. 4 0
      source/skills/spell.cpp

+ 31 - 31
effect.h → include/skills/effect.h

@@ -1,31 +1,31 @@
-//
-// Created by IgorBat on 17.03.2018.
-//
-
-#ifndef THE_GAME_EFFECT_H
-#define THE_GAME_EFFECT_H
-
-#pragma once
-#include <iostream>
-#include <vector>
-//#include "AbstractFactory.h"
-enum typeEffect{damage, strength};
-class Effect {
-
-private:
-    int count_;
-    typeEffect typeEffect_;
-public:
-    Effect() = delete;
-    Effect(std::string path) {
-
-    }
-    virtual ~Effect() = delete;
-
-    int getCount();
-    void setCount(int value);
-
-    typeEffect getType();
-    void setType(typeEffect value);
-};
-#endif //THE_GAME_EFFECT_H
+//
+// Created by IgorBat on 17.03.2018.
+//
+
+#ifndef THE_GAME_EFFECT_H
+#define THE_GAME_EFFECT_H
+
+#pragma once
+#include <iostream>
+#include <vector>
+//#include "AbstractFactory.h"
+enum typeEffect{damage, strength};
+class Effect {
+
+private:
+    int count_;
+    typeEffect typeEffect_;
+public:
+    Effect() = delete;
+    Effect(std::string path) {
+
+    }
+    virtual ~Effect() = delete;
+
+    int getCount();
+    void setCount(int value);
+
+    typeEffect getType();
+    void setType(typeEffect value);
+};
+#endif //THE_GAME_EFFECT_H

+ 44 - 44
spell.h → include/skills/spell.h

@@ -1,44 +1,44 @@
-//
-// Created by IgorBat on 17.03.2018.
-//
-
-#ifndef THE_GAME_SPELL_H
-#define THE_GAME_SPELL_H
-
-#pragma once
-#include <iostream>
-#include <vector>
-//#include "AbstractFactory.h"
-#include "effect.h"
-class Cell;
-
-class Spell {
-
-protected:
-    std::vector <Effect> effects_;
-
-private:
-    int distance_;
-    bool forCell_;
-public:
-    Spell() = delete;
-    Spell(std::string path) {
-
-    }
-    virtual ~Spell() = delete;
-
-    int getDistance();
-    void setDistance(int value);
-
-    bool getForCell();
-    void setForCell(bool value);
-
-    int lenOfActualPath(Cell* destination);
-
-    virtual bool canCastForDistance(int distance);
-
-    virtual bool canCastToCell(Cell* destination);
-
-    virtual void castToCell(Cell* destination);
-};
-#endif //THE_GAME_SPELL_H
+//
+// Created by IgorBat on 17.03.2018.
+//
+
+#ifndef THE_GAME_SPELL_H
+#define THE_GAME_SPELL_H
+
+#pragma once
+#include <iostream>
+#include <vector>
+//#include "AbstractFactory.h"
+#include "effect.h"
+class Cell;
+
+class Spell {
+
+protected:
+    std::vector <Effect> effects_;
+
+private:
+    int distance_;
+    bool forCell_;
+public:
+    Spell() = delete;
+    Spell(std::string path) {
+
+    }
+    virtual ~Spell() = delete;
+
+    int getDistance();
+    void setDistance(int value);
+
+    bool getForCell();
+    void setForCell(bool value);
+
+    int lenOfActualPath(Cell* destination);
+
+    virtual bool canCastForDistance(int distance);
+
+    virtual bool canCastToCell(Cell* destination);
+
+    virtual void castToCell(Cell* destination);
+};
+#endif //THE_GAME_SPELL_H

+ 4 - 0
source/skills/effect.cpp

@@ -0,0 +1,4 @@
+//
+// Created by IgorBat on 21.04.2018.
+//
+

+ 4 - 0
source/skills/spell.cpp

@@ -0,0 +1,4 @@
+//
+// Created by IgorBat on 21.04.2018.
+//
+