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/spacebar/baglib/storage_dev_bmp.h"
27 #include "bagel/spacebar/baglib/character_object.h"
28 #include "bagel/spacebar/baglib/pda.h"
29 
30 namespace Bagel {
31 namespace SpaceBar {
32 
33 class CBagMoo : public CBagStorageDevBmp {
34 private:
35  static CBagCharacterObject *_pMovie;
36  static PdaMode _eSavePDAMode;
37  static PdaPos _eSavePDAPos;
38 
39 public:
41  }
42  virtual ~CBagMoo();
43  static void initialize();
44 
45  ErrorCode update(CBofBitmap *pBmp, CBofPoint pt, CBofRect *pSrcRect = nullptr, int nMaskColor = -1) override;
46 
47  // Grab the button event of the bagbmobj and send them to the cbagsdev
48  void onLButtonUp(uint32 /*nFlags*/, CBofPoint */*xPoint*/, void */*info*/) override {
49  }
50  void onLButtonDown(uint32 /*nFlags*/, CBofPoint */*xPoint*/, void * = nullptr) override {
51  }
52 
53  // For public access to our movie object
54 
55  ErrorCode setPDAMovie(CBofString &s);
56  CBagCharacterObject *getPDAMovie() {
57  return _pMovie;
58  }
59 
60  void stopMovie(bool);
61  bool moviePlaying() {
62  return _pMovie != nullptr;
63  }
64 
65  void savePDAMode(PdaMode pdaMode) {
66  _eSavePDAMode = pdaMode;
67  }
68  void savePDAPosition(PdaPos pdaPos) {
69  _eSavePDAPos = pdaPos;
70  }
71 };
72 
73 } // namespace SpaceBar
74 } // namespace Bagel
75 
76 #endif
Definition: character_object.h:32
Definition: rect.h:35
Definition: string.h:38
Definition: afxwin.h:27
Definition: point.h:32
Definition: storage_dev_bmp.h:32
Definition: bitmap.h:57
Definition: moo.h:33