ScummVM API documentation
ad_sentence.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * This file is based on WME Lite.
24  * http://dead-code.org/redir.php?target=wmelite
25  * Copyright (c) 2011 Jan Nedoma
26  */
27 
28 #ifndef WINTERMUTE_ADSENTENCE_H
29 #define WINTERMUTE_ADSENTENCE_H
30 
31 
32 #include "engines/wintermute/base/base.h"
33 #include "engines/wintermute/persistent.h"
34 #include "engines/wintermute/dctypes.h" // Added by ClassView
35 #include "common/rect.h"
36 
37 namespace Wintermute {
38 class AdTalkDef;
39 class BaseFont;
40 class BaseSprite;
41 class BaseSound;
42 class AdSentence : public BaseClass {
43 public:
44  bool _freezable;
45  bool _fixedPos;
46  BaseSprite *_currentSprite;
47  char *_currentSkelAnim;
48  bool update(TDirection dir = DI_DOWN);
49  bool setupTalkFile(const char *soundFilename);
50  DECLARE_PERSISTENT(AdSentence, BaseClass)
51  bool finish();
52  void setSound(BaseSound *Sound);
53  bool _soundStarted;
54  BaseSound *_sound;
55  TTextAlign _align;
56  bool display();
57  int32 _width;
58  Common::Point32 _pos;
59  BaseFont *_font;
60  char *getNextStance();
61  char *getCurrentStance();
62  void setStances(const char *stances);
63  void setText(const char *text);
64  int32 _currentStance;
65  uint32 _startTime;
66  char *_stances;
67  char *_text;
68  uint32 _duration;
69  AdSentence(BaseGame *inGame);
70  ~AdSentence() override;
71  AdTalkDef *_talkDef;
72  bool canSkip();
73 
74 private:
75  char *_tempStance;
76  char *getStance(int stance);
77 };
78 
79 } // End of namespace Wintermute
80 
81 #endif
Definition: base_game.h:75
Definition: ad_sentence.h:42
Definition: ad_talk_def.h:37
Definition: rect.h:146
Definition: base_font.h:37
Definition: base_sound.h:39
Definition: base.h:43
Definition: base_sprite.h:40
Definition: achievements_tables.h:27