Browse Source

Added unit.h and empty unit.cpp

Noath 7 years ago
parent
commit
3dce063154
2 changed files with 47 additions and 0 deletions
  1. 21 0
      unit.cpp
  2. 26 0
      unit.h

+ 21 - 0
unit.cpp

@@ -0,0 +1,21 @@
+#pragma once
+#include <iostream>
+#include <vector>
+
+class Spell {
+	//empty for allow to compile
+};
+
+class Unit {
+private:
+	int expirience_;
+	int level_;
+	int hit_points_;
+	int mana_points_;
+	int energy_points_;
+	int active_points_;
+	std::vector <Spell> skills_;
+public:
+	virtual Unit();
+	virtual ~Unit();
+};

+ 26 - 0
unit.h

@@ -0,0 +1,26 @@
+#pragma once
+#include <iostream>
+#include <vector>
+
+class Spell {
+	//empty for allow to compile
+};
+
+class Unit {
+protected:
+	int expirience_;
+	int level_;
+	int hit_points_;
+	int mana_points_;
+	int energy_points_;
+	int active_points_;
+	int atack_range_;
+	std::pair <int, int> location_; //x - first, y - second
+	std::vector <Spell> skills_;
+private:
+	
+
+public:
+	Unit();
+	virtual ~Unit();
+};