X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fspecial%2Fbase.h;h=22af93314a9d5e90c88abb6dc540c8903f2c9b82;hb=133d94d5b145f325c38c8c15c9ea561bfffb092d;hp=67fbeb5e54484799ea866d36958875079194f15a;hpb=9c511ea692d3a2339597211f08f18ea74fad35ec;p=supertux.git diff --git a/lib/special/base.h b/lib/special/base.h index 67fbeb5e5..22af93314 100644 --- a/lib/special/base.h +++ b/lib/special/base.h @@ -18,23 +18,29 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. -#ifndef SUPERTUX_TYPE_H -#define SUPERTUX_TYPE_H +#ifndef SUPERTUX_BASE_H +#define SUPERTUX_BASE_H #include #include "SDL.h" -/* 'Base' type for game objects */ +namespace SuperTux + { -struct base_type -{ - float x; - float y; - float width; - float height; -}; + /// 'Base' type for game objects. + /** Mainly for layered use in game objects. + Contains upper left X and Y coordinates of an + object along with its width and height. */ + struct base_type + { + float x; + float y; + float width; + float height; + }; +} -#endif /*SUPERTUX_TYPE_H*/ +#endif /*SUPERTUX_BASE_H*/