From 9252bfb61fabea1f45afacb19d805eb5fdd01599 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Sep 2008 21:34:53 +0000 Subject: intro module --- src/game/intro/convoy.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/game/intro/convoy.h (limited to 'src/game/intro/convoy.h') diff --git a/src/game/intro/convoy.h b/src/game/intro/convoy.h new file mode 100644 index 0000000..8f8a64d --- /dev/null +++ b/src/game/intro/convoy.h @@ -0,0 +1,51 @@ +/* + intro/convoy.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_INTRO_CONVOY_H__ +#define __INCLUDED_INTRO_CONVOY_H__ + +#include + +#include "core/core.h" +#include "math/color.h" + +namespace intro { + +class Member : public core::EntityControlable +{ +public: + Member(std::string const &model); + ~Member(); + + void frame(float seconds); +}; + +class Convoy +{ +public: + Convoy(core::Zone *zone); + ~Convoy(); + + void add(const char *model); + void add(std::string const &model); + + void frame(float seconds); + + void set_color(math::Color const &color); + void set_color_second(math::Color const &color); + +private: + typedef std::list Members; + Members convoy_members; + core::Zone *convoy_zone; + math::Color convoy_color; + math::Color convoy_color_second; +}; + +} + +#endif // __INCLUDED_INTRO_CONVOY_H__ + -- cgit v1.2.3