Просмотр исходного кода

Merge branch 'skills' of Gi1dor/game-client into dev

Архипов Иван 7 лет назад
Родитель
Сommit
c1b357b0b7
2 измененных файлов с 75 добавлено и 0 удалено
  1. 31 0
      effect.h
  2. 44 0
      spell.h

+ 31 - 0
effect.h

@@ -0,0 +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

+ 44 - 0
spell.h

@@ -0,0 +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

PANIC: session(release): write data/sessions/9/b/9b52183169773b83: no space left on device

PANIC

session(release): write data/sessions/9/b/9b52183169773b83: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)