ScummVM API documentation
moo.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef BAGEL_BAGLIB_MOO_H
24 #define BAGEL_BAGLIB_MOO_H
25 
26 #include "bagel/baglib/storage_dev_bmp.h"
27 #include "bagel/baglib/character_object.h"
28 #include "bagel/baglib/pda.h"
29 
30 namespace Bagel {
31 
32 class CBagMoo : public CBagStorageDevBmp {
33 private:
34  static CBagCharacterObject *_pMovie;
35  static PdaMode _eSavePDAMode;
36  static PdaPos _eSavePDAPos;
37 
38 public:
39  CBagMoo() : CBagStorageDevBmp() {}
40  virtual ~CBagMoo();
41  static void initialize();
42 
43  ErrorCode update(CBofBitmap *pBmp, CBofPoint pt, CBofRect *pSrcRect = nullptr, int nMaskColor = -1) override;
44 
45  // Grab the button event of the bagbmobj and send them to the cbagsdev
46  void onLButtonUp(uint32 /*nFlags*/, CBofPoint * /*xPoint*/, void * /*info*/) override {}
47  void onLButtonDown(uint32 /*nFlags*/, CPoint * /*xPoint*/, void * = nullptr) override {}
48 
49  // For public access to our movie object
50 
51  ErrorCode setPDAMovie(CBofString &s);
52  CBagCharacterObject *getPDAMovie() {
53  return _pMovie;
54  }
55 
56  void stopMovie(bool);
57  bool moviePlaying() {
58  return _pMovie != nullptr;
59  }
60 
61  void savePDAMode(PdaMode pdaMode) {
62  _eSavePDAMode = pdaMode;
63  }
64  void savePDAPosition(PdaPos pdaPos) {
65  _eSavePDAPos = pdaPos;
66  }
67 };
68 
69 } // namespace Bagel
70 
71 #endif
Definition: bitmap.h:55
Definition: rect.h:36
Definition: moo.h:32
Definition: string.h:38
Definition: bagel.h:31
Definition: point.h:34
Definition: character_object.h:31
Definition: storage_dev_bmp.h:31