X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fspecial%2Fbase.h;h=22af93314a9d5e90c88abb6dc540c8903f2c9b82;hb=7b53008a4d43e645f74cd56067428af4f590aef7;hp=84bc12c72629642dd196a5c7a030432f11cc5b1c;hpb=8d9061d2c5c17b32ab239d4e151a25b500508b91;p=supertux.git diff --git a/lib/special/base.h b/lib/special/base.h index 84bc12c72..22af93314 100644 --- a/lib/special/base.h +++ b/lib/special/base.h @@ -18,25 +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. -/** Mainly for layered use in game objects. - Containts 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; -}; +namespace SuperTux + { + /// '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*/