src/core/geometry_type.hpp
author skidd13
Sun, 23 Dec 2007 14:06:03 +0000
changeset 8126 c96febd50363
parent 8121 3bc6351e7369
child 8127 a20f557b7081
permissions -rw-r--r--
(svn r11687) -Codechange: move some defines to a better place
/* $Id$ */

/** @file geometry_type.hpp All geometry types in OpenTTD. */

#ifndef GEOMETRY_TYPE_HPP
#define GEOMETRY_TYPE_HPP

#if defined(__AMIGA__)
	/* AmigaOS already has a Point declared */
	#define Point OTTD_Point
#endif /* __AMIGA__ */

struct Point {
	int x;
	int y;
};

struct Dimension {
	int width;
	int height;
};

struct Rect {
	int left;
	int top;
	int right;
	int bottom;
};

struct PointDimension {
	int x;
	int y;
	int width;
	int height;
};

struct Pair {
	int a;
	int b;
};

#endif /* GEOMETRY_TYPE_HPP */