Added some structures to SerialPacket, and serial.cpp

I've also created the Statistics structure for simplicity.
This commit is contained in:
Kayne Ruse
2014-05-26 00:49:31 +10:00
parent c575ee9ce1
commit 1dd8042d3d
8 changed files with 243 additions and 80 deletions
+2 -14
View File
@@ -25,6 +25,7 @@
//POD members
#include "bbox.hpp"
#include "vector2.hpp"
#include "statistics.hpp"
#include <string>
@@ -40,20 +41,7 @@ struct CharacterData {
Vector2 motion = {0.0,0.0};
//base statistics
int level = 0;
int exp = 0;
int maxHP = 0;
int health = 0;
int maxMP = 0;
int mana = 0;
int attack = 0;
int defence = 0;
int intelligence = 0;
int resistance = 0;
int speed = 0;
float accuracy = 0.0;
float evasion = 0.0;
float luck = 0.0;
Statistics stats;
//TODO: equipment
//TODO: items