client/army.h

Go to the documentation of this file.
00001 /* $Id: army.h jjs $ */
00002 /*
00003    Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
00004    Part of the Moros Project http://moros.sourceforge.net/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY.
00010 
00011    See the COPYING file for more details.
00012 */
00013 #ifndef ARMY_HPP_
00014 #define ARMY_HPP_
00015 
00017 
00018 enum unit_status {
00019     Unit_idle,
00020     Unit_roadbuilding,
00021     Unit_transporting,
00022     Unit_patrol
00023 };
00024 
00026 
00027 struct client_unit {
00028     unittype type;
00029     int amount;
00030     int requested;
00031     int status;
00032 };
00033 
00035 
00036 struct client_unit_type {
00037     string picture;
00038     string name;
00039     string description;
00040 };
00041 
00042 // MOVEMENT:
00043 // - wait: time
00044 // - move: direction, time
00045 
00047 
00048 class client_army {
00049   public:
00050     map<unittype, unit>;
00051     location position;
00052     string movement;
00053     unittype prime_unit;
00054 };
00055 
00057 
00058 list<army> armies;
00059 
00060 #endif /*ARMY_HPP_*/


Generated on Tue Jan 1 17:30:00 2008 for client/army.h Source File by  doxygen   Visit the project page on SourceForge.net Logo