ScummVM API documentation
notebook_page.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
#ifndef TINSEL_NOTEBOOK_PAGE_H // prevent multiple includes
23
#define TINSEL_NOTEBOOK_PAGE_H
24
25
#include "common/scummsys.h"
26
#include "tinsel/anim.h"
27
#include "tinsel/tinsel.h"
28
#include "tinsel/object.h"
29
30
namespace
Tinsel
{
31
32
class
NotebookLine
{
33
public
:
34
int
_id = 0;
35
void
crossOut();
36
void
clear();
37
void
fillIn(
int
pageLine);
38
private
:
39
bool
_crossedOut =
false
;
40
ANIM
_anim = {};
41
OBJECT
*_obj =
nullptr
;
42
OBJECT
*_scribbles =
nullptr
;
43
ANIM
_scribbleAnim = {};
44
};
45
46
class
NotebookPage
{
47
public
:
48
bool
containsClue(
int
id
);
49
void
crossClue(
int
id
);
50
void
addLine(
int
id
);
51
void
setTitle(
int
id
);
52
int32 getTitle()
const
;
53
void
fillIn();
54
void
clear();
55
int
getPointedClue(
const
Common::Point
&point)
const
;
56
int
getClueForLine(
int
line)
const
;
57
void
handlePointAtLine(
int
line);
58
private
:
59
int
indexOfClue(
int
id
)
const
;
60
61
int
_pointedClue = -1;
62
const
static
uint32 MAX_ENTRIES_PER_PAGE = 8;
63
NotebookLine
_lines[MAX_ENTRIES_PER_PAGE] = {};
64
uint32 _numLines = 0;
65
};
66
67
}
// End of namespace Tinsel
68
69
#endif // SCUMMVM_NOTEBOOK_PAGE_H
Tinsel::ANIM
Definition:
anim.h:33
Tinsel::NotebookLine
Definition:
notebook_page.h:32
Tinsel::OBJECT
Definition:
object.h:74
Tinsel
Definition:
actors.h:36
Common::Point
Definition:
rect.h:45
Tinsel::NotebookPage
Definition:
notebook_page.h:46
engines
tinsel
noir
notebook_page.h
Generated on Wed Dec 18 2024 09:20:06 for ScummVM API documentation by
1.8.13