From f0d10b62b37b7d3e35ebcd989745a2d0a9570a21 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 14 Jul 2011 22:36:18 +1000 Subject: CGE: In progress work on pathfinder --- engines/cge/general.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'engines/cge/general.h') diff --git a/engines/cge/general.h b/engines/cge/general.h index b4f73726ee..0639fe2a01 100644 --- a/engines/cge/general.h +++ b/engines/cge/general.h @@ -49,46 +49,6 @@ struct Dac { typedef uint16 CRYPT(void *buf, uint16 siz, uint16 seed); -class Couple { -protected: - signed char _a; - signed char _b; -public: - Couple() { } - Couple(const signed char a, const signed char b) : _a(a), _b(b) { } - Couple operator + (Couple c) { - return Couple(_a + c._a, _b + c._b); - } - - void operator += (Couple c) { - _a += c._a; - _b += c._b; - } - - Couple operator - (Couple c) { - return Couple(_a - c._a, _b - c._b); - } - - void operator -= (Couple c) { - _a -= c._a; - _b -= c._b; - } - - bool operator == (Couple c) { - return ((_a - c._a) | (_b - c._b)) == 0; - } - - bool operator != (Couple c) { - return !(operator == (c)); - } - - void split(signed char &a, signed char &b) { - a = _a; - b = _b; - } -}; - - class Engine_ { protected: static void (* oldTimer)(...); -- cgit v1.2.3