aboutsummaryrefslogtreecommitdiff
path: root/queen/state.cpp
diff options
context:
space:
mode:
authorGregory Montoir2004-03-07 10:46:02 +0000
committerGregory Montoir2004-03-07 10:46:02 +0000
commitec5f7b87c6097cf600d5e38acaa893337a88baca (patch)
tree96ad86ae1e7e90071d602d87efaf0f772b100927 /queen/state.cpp
parentf1c730d27b39aff8bb08e53abb439807aa590053 (diff)
downloadscummvm-rg350-ec5f7b87c6097cf600d5e38acaa893337a88baca.tar.gz
scummvm-rg350-ec5f7b87c6097cf600d5e38acaa893337a88baca.tar.bz2
scummvm-rg350-ec5f7b87c6097cf600d5e38acaa893337a88baca.zip
cleanup (removed irrevelant comments and useless XXX'ed code)
svn-id: r13214
Diffstat (limited to 'queen/state.cpp')
-rw-r--r--queen/state.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/queen/state.cpp b/queen/state.cpp
index 7cbbbc058e..36b199210b 100644
--- a/queen/state.cpp
+++ b/queen/state.cpp
@@ -24,7 +24,6 @@
namespace Queen {
-
Direction State::findDirection(uint16 state) {
static const Direction sd[] = {
DIR_BACK,
@@ -35,12 +34,10 @@ Direction State::findDirection(uint16 state) {
return sd[(state >> 2) & 3];
}
-
StateTalk State::findTalk(uint16 state) {
return (state & (1 << 9)) ? STATE_TALK_TALK : STATE_TALK_MUTE;
}
-
StateGrab State::findGrab(uint16 state) {
static const StateGrab sg[] = {
STATE_GRAB_NONE,
@@ -51,12 +48,10 @@ StateGrab State::findGrab(uint16 state) {
return sg[state & 3];
}
-
StateOn State::findOn(uint16 state) {
return (state & (1 << 8)) ? STATE_ON_ON : STATE_ON_OFF;
}
-
Verb State::findDefaultVerb(uint16 state) {
static const Verb sdv[] = {
VERB_NONE,
@@ -82,12 +77,10 @@ Verb State::findDefaultVerb(uint16 state) {
return sdv[(state >> 4) & 0xF];
}
-
StateUse State::findUse(uint16 state) {
return (state & (1 << 10)) ? STATE_USE : STATE_USE_ON;
}
-
void State::alterOn(uint16 *objState, StateOn state) {
switch (state) {
case STATE_ON_ON:
@@ -99,7 +92,6 @@ void State::alterOn(uint16 *objState, StateOn state) {
}
}
-
void State::alterDefaultVerb(uint16 *objState, Verb v) {
uint16 val;
switch (v) {
@@ -134,5 +126,4 @@ void State::alterDefaultVerb(uint16 *objState, Verb v) {
*objState = (*objState & ~0xF0) | (val << 4);
}
-
} // End of namespace Queen