~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to engines/gob/goblin.h

  • Committer: Bazaar Package Importer
  • Author(s): Moritz Muehlenhoff
  • Date: 2010-05-07 18:57:09 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20100507185709-34v8yycywjrou5o3
Tags: upstream-1.1.1
ImportĀ upstreamĀ versionĀ 1.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 *
21
 
 * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-0-0/engines/gob/goblin.h $
22
 
 * $Id: goblin.h 40166 2009-04-27 18:56:28Z drmccoy $
 
21
 * $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-1-1/engines/gob/goblin.h $
 
22
 * $Id: goblin.h 45616 2009-11-02 21:54:57Z fingolfin $
23
23
 *
24
24
 */
25
25
 
198
198
        // Functions
199
199
        char rotateState(int16 from, int16 to);
200
200
        void playSound(SoundDesc &snd, int16 repCount, int16 freq);
201
 
        void drawObjects(void);
202
 
        void animateObjects(void);
 
201
        void drawObjects();
 
202
        void animateObjects();
203
203
        int16 getObjMaxFrame(Gob_Object * obj);
204
204
        bool objIntersected(Gob_Object * obj1, Gob_Object * obj2);
205
205
        void setMultStates(Gob_Object * gobDesc);
206
206
        int16 nextLayer(Gob_Object * gobDesc);
207
207
        void showBoredom(int16 gobIndex);
208
208
        void switchGoblin(int16 index);
209
 
        void zeroObjects(void);
210
 
        void freeAllObjects(void);
 
209
        void zeroObjects();
 
210
        void freeAllObjects();
211
211
        void loadObjects(const char *source);
212
 
        void initVarPointers(void);
 
212
        void initVarPointers();
213
213
        void saveGobDataToVars(int16 xPos, int16 yPos, int16 someVal);
214
 
        void loadGobDataFromVars(void);
 
214
        void loadGobDataFromVars();
215
215
        void pickItem(int16 indexToPocket, int16 idToPocket);
216
216
        void placeItem(int16 indexInPocket, int16 idInPocket);
217
217
        void swapItems(int16 indexToPick, int16 idToPick);
225
225
        void move(int16 destX, int16 destY, int16 objIndex);
226
226
        void animate(Mult::Mult_Object *obj);
227
227
 
228
 
        virtual void handleGoblins(void) = 0;
 
228
        virtual void handleGoblins() = 0;
229
229
        virtual void placeObject(Gob_Object * objDesc, char animated,
230
230
                        int16 index, int16 x, int16 y, int16 state) = 0;
231
 
        virtual void freeObjects(void) = 0;
 
231
        virtual void freeObjects() = 0;
232
232
        virtual void initiateMove(Mult::Mult_Object *obj) = 0;
233
233
        virtual void moveAdvance(Mult::Mult_Object *obj, Gob_Object *gobDesc,
234
234
                        int16 nextAct, int16 framesCount) = 0;
243
243
        GobEngine *_vm;
244
244
 
245
245
        int16 peekGoblin(Gob_Object *curGob);
246
 
        void initList(void);
 
246
        void initList();
247
247
        void sortByOrder(Util::List *list);
248
248
        void adjustDest(int16 posX, int16 posY);
249
 
        void adjustTarget(void);
 
249
        void adjustTarget();
250
250
        void targetDummyItem(Gob_Object *gobDesc);
251
 
        void targetItem(void);
 
251
        void targetItem();
252
252
        void moveFindItem(int16 posX, int16 posY);
253
253
        void moveCheckSelect(int16 framesCount, Gob_Object * gobDesc,
254
254
                        int16 *pGobIndex, int16 *nextAct);
265
265
 
266
266
class Goblin_v1 : public Goblin {
267
267
public:
268
 
        virtual void handleGoblins(void) {}
 
268
        virtual void handleGoblins() {}
269
269
        virtual void placeObject(Gob_Object * objDesc, char animated,
270
270
                        int16 index, int16 x, int16 y, int16 state);
271
 
        virtual void freeObjects(void);
 
271
        virtual void freeObjects();
272
272
        virtual void initiateMove(Mult::Mult_Object *obj);
273
273
        virtual void moveAdvance(Mult::Mult_Object *obj, Gob_Object *gobDesc,
274
274
                        int16 nextAct, int16 framesCount);
285
285
 
286
286
class Goblin_v2 : public Goblin_v1 {
287
287
public:
288
 
        virtual void handleGoblins(void);
 
288
        virtual void handleGoblins();
289
289
        virtual void placeObject(Gob_Object * objDesc, char animated,
290
290
                        int16 index, int16 x, int16 y, int16 state);
291
 
        virtual void freeObjects(void);
 
291
        virtual void freeObjects();
292
292
        virtual void initiateMove(Mult::Mult_Object *obj);
293
293
        virtual void moveAdvance(Mult::Mult_Object *obj, Gob_Object *gobDesc,
294
294
                        int16 nextAct, int16 framesCount);