From ae338068025ec17d952af996267a6cad59b5187e Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Thu, 11 Dec 2003 10:03:35 +0000 Subject: centralize all State related stuff svn-id: r11577 --- queen/logic.h | 58 +--------------------------------------------------------- 1 file changed, 1 insertion(+), 57 deletions(-) (limited to 'queen/logic.h') diff --git a/queen/logic.h b/queen/logic.h index 87143c48f4..16ef37c62f 100644 --- a/queen/logic.h +++ b/queen/logic.h @@ -25,6 +25,7 @@ #include "common/util.h" #include "queen/defs.h" #include "queen/structs.h" +#include "queen/state.h" // for joeGrabDirection() #include "queen/verb.h" namespace Queen { @@ -41,63 +42,6 @@ struct ZoneSlot { Box box; }; - -/*! - Each object/item in game has a state field. - (refer to ObjectData and ItemData). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameBitsDescription
USE10Use
TALK9Talk
ON8On/Off
DEF7,6,5,4Default verb command
DIR3,2Direction faced
GRAB1,0Grab Direction
-*/ -struct State { - - static Direction findDirection(uint16 state); - static StateTalk findTalk(uint16 state); - static StateGrab findGrab(uint16 state); - static StateOn findOn(uint16 state); - static Verb findDefaultVerb(uint16 state); - static StateUse findUse(uint16 state); - - static void alterOn(uint16 *objState, StateOn state); - static void alterDefaultVerb(uint16 *objState, Verb v); -}; - - class Command; class Debug; class Display; -- cgit v1.2.3