aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/behavior.h
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-15 00:46:19 +0300
committerEugene Sandulenko2013-09-06 14:51:14 +0300
commit9f52e9f65068e136680e5fbd4a55eb4ff69720c2 (patch)
tree7b3415da15cfa1b468fc97de3738b4e8b9830167 /engines/fullpipe/behavior.h
parent4db2d7e21b6729b04e1760af302a1acdd3bd4ae4 (diff)
downloadscummvm-rg350-9f52e9f65068e136680e5fbd4a55eb4ff69720c2.tar.gz
scummvm-rg350-9f52e9f65068e136680e5fbd4a55eb4ff69720c2.tar.bz2
scummvm-rg350-9f52e9f65068e136680e5fbd4a55eb4ff69720c2.zip
FULLPIPE: More work on behaviors. Animations start to (buggy) work.
Diffstat (limited to 'engines/fullpipe/behavior.h')
-rw-r--r--engines/fullpipe/behavior.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/fullpipe/behavior.h b/engines/fullpipe/behavior.h
index 210426ebc6..d9375d4d01 100644
--- a/engines/fullpipe/behavior.h
+++ b/engines/fullpipe/behavior.h
@@ -28,10 +28,10 @@ namespace Fullpipe {
struct BehaviorEntryInfo {
MessageQueue *_messageQueue;
int _delay;
- uint _percent;
+ uint32 _percent;
int _flags;
- BehaviorEntryInfo(CGameVar *subvar, Scene *sc);
+ BehaviorEntryInfo(CGameVar *subvar, Scene *sc, int *delay);
};
struct BehaviorEntry {
@@ -40,6 +40,7 @@ struct BehaviorEntry {
int _flags;
BehaviorEntryInfo **_items;
+ BehaviorEntry();
BehaviorEntry(CGameVar *var, Scene *sc, StaticANIObject *ani, int *minDelay);
};
@@ -56,7 +57,7 @@ struct BehaviorInfo {
BehaviorInfo() { clear(); }
void clear();
- void initAmbientBehavior(CGameVar *var);
+ void initAmbientBehavior(CGameVar *var, Scene *sc);
void initObjectBehavior(CGameVar *var, Scene *sc, StaticANIObject *ani);
};
@@ -75,7 +76,7 @@ class BehaviorManager : public CObject {
void updateBehaviors();
void updateBehavior(BehaviorInfo *behaviorInfo, BehaviorEntry *entry);
- void updateStaticAniBehavior(StaticANIObject *ani, unsigned int delay, BehaviorEntry *behaviorEntry);
+ void updateStaticAniBehavior(StaticANIObject *ani, int delay, BehaviorEntry *beh);
};
} // End of namespace Fullpipe