#pragma once #include "abstractfactory.h" #include #include #include #include #include class Spell { public: int a; }; class Cell { //waiting for a realisation public: //must be in cell.h bool isEmpty() { return true; } std::vector actualPath(Cell*) { //the shortest existing path from (*this) to (*destination) std::vector path; return path; } }; class Unit : public QObject { Q_OBJECT public: explicit Unit(QString parameters); virtual ~Unit() {} //---------------------------------------------// //---------Basic traits getters section--------// //---------------------------------------------// double getExperience(); double getLevel(); int getMovementSpeed(); double getInitiative(); double getDamagePerHit(); double getIntelligence(); double getStrength(); double getAgility(); int getActivityPoints(); int getAttackPoints(); int getAttackCost(); double getAttackRange(); int getStartingActivityPoints(); double getHealthPoints(); double getMagicDefence(); double getPhysicDefence(); int getCost(); void setCost(int value); std::vector getParentSpecs(); std::vector getUpgradeSpecs(); //---------------------------------------------// //------------Unit location section------------// //---------------------------------------------// Cell* getLocation(); void setLocation(Cell* to); double getRealX(); void setRealX(double x); double getRealY(); void setRealY(double y); //---------------------------------------------// //--------Damage checkers & calculators--------// //---------------------------------------------// virtual void calculateDamagePerHit(); virtual double reduceIncomingDamage(std::string damageType, int value); virtual bool canAttackForDistance(int ) {return false;} virtual bool canAttackToCell(Cell* ) {return false;} virtual bool canAttackUnit(Unit* ) {return false;} //---------------------------------------------// //-------Movement checkers & calculators-------// //---------------------------------------------// int lenOfActualPath(Cell* destination); virtual bool canMoveForDistance(int distance); virtual bool canMoveToCell(Cell* destination); virtual void moveToCell(Cell* destination); //---------------------------------------------// //----------------GUI section------------------// //---------------------------------------------// QString getUnitId() const; QString getUnitName() const; QString getUnitDescr() const; QString getUnitBaseClassId() const; std::vector getUnitTraits() const; QImage getUnitIcon() const; //---------------------------------------------// //-----------Parameters load section-----------// //---------------------------------------------// private: void loadUnitName(QString unit_folder); void loadUnitDescr(QString unit_folder); void loadUnitBaseClass(QString unit_folder); void loadUnitTraits(QString unit_folder); void loadUnitIcon(QString unit_folder); void loadUnitPrevSpecs(QString unit_folder); void loadUnitUpgradeSpecs(QString unit_folder); public: bool operator <(const Unit &b) { if (base_class_id_ != b.base_class_id_) return base_class_id_ < b.base_class_id_; return unit_id_ < b.unit_id_; } protected: std::vector skills_; //personal information int cost_; std::vector parent_specs_; std::vector upgrade_specs_; double experience_; double level_; std::string race_; //lower case //actions and events double initiative_; int activity_points_; //movement Cell* location_; int movement_speed_; //how many cells can move for one activity point double real_x_; double real_y_; //attack action double agility_; double attack_range_; double damage_per_hit_; double intelligence_; double strength_; int attack_cost_; //how many activity points does attack cost int starting_activity_points_; //durability double health_points_; double magic_defence_; //less or equal 40 double physic_defence_; //less or equal 40 // GUI values QString race_id_; QString unit_id_; QString unit_name_; QString unit_descr_; QString base_class_id_; QImage unit_icon_; }; PANIC: session(release): write data/sessions/c/1/c1d0988c8bb62d01: no space left on device

PANIC

session(release): write data/sessions/c/1/c1d0988c8bb62d01: 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)