Google
Web alhem.net

robotworld.h

Go to the documentation of this file.
00001 #ifndef _ROBOTWORLD_H
00002 #define _ROBOTWORLD_H
00003 
00004 #include <string>
00005 
00006 typedef enum {
00007         MAPOBJECT_NOTHING = 0,
00008         MAPOBJECT_ROBOT,
00009         MAPOBJECT_PORTAL,
00010         MAPOBJECT_BASE,
00011         MAPOBJECT_POWERUP_UNKNOWN,
00012         MAPOBJECT_ITEM,
00013 } mapobject_t;
00014 
00015 typedef enum {
00016         ROBOTOBJECT_ROBOT = 1,
00017         ROBOTOBJECT_RADAR,
00018         ROBOTOBJECT_TURRET,
00019         ROBOTOBJECT_GUN,
00020         ROBOTOBJECT_SHIELDS,
00021 } robotobject_t;
00022 
00023 class MapObject;
00024 
00025 struct VARIABLE {
00026         VARIABLE(const std::string& n,int t,int r) : nr(r),name(n),type(t),value(0),object(NULL) {}
00027         int nr;
00028         std::string name;
00029         int type; // 0-integer, 1-map object
00030         long value;
00031         MapObject *object;
00032 };
00033 
00034 
00035 #endif // _ROBOTWORLD_H

Generated for Robot World by doxygen 1.3.6

Page, code, and content Copyright (C) 2004 by Anders Hedström