]> git.localhorst.tv Git - l2e.git/blobdiff - src/menu/HeroStatus.h
added hero status tags in party menu
[l2e.git] / src / menu / HeroStatus.h
diff --git a/src/menu/HeroStatus.h b/src/menu/HeroStatus.h
new file mode 100644 (file)
index 0000000..1b88da2
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * HeroStatus.h
+ *
+ *  Created on: Oct 21, 2012
+ *      Author: holy
+ */
+
+#ifndef MENU_HEROSTATUS_H_
+#define MENU_HEROSTATUS_H_
+
+#include "fwd.h"
+#include "../common/fwd.h"
+#include "../geometry/Vector.h"
+
+#include <SDL.h>
+
+namespace menu {
+
+class HeroStatus {
+
+public:
+       HeroStatus();
+       ~HeroStatus();
+
+public:
+       void SetResources(const Resources *r) { res = r; }
+       void SetHero(const common::Hero *h) { hero = h; }
+       void SetPosition(const geometry::Vector<int> &p) { position = p; }
+
+       int Width() const;
+       int Height() const;
+       geometry::Vector<int> Size() const { return geometry::Vector<int>(Width(), Height()); }
+
+       void Render(SDL_Surface *screen, const geometry::Vector<int> &offset) const;
+
+private:
+       const Resources *res;
+       const common::Hero *hero;
+       geometry::Vector<int> position;
+
+};
+
+}
+
+#endif /* MENU_HEROSTATUS_H_ */