ScummVM API documentation
cursors.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 SLUDGE_CURSORS_H
23
#define SLUDGE_CURSORS_H
24
25
namespace
Common
{
26
class
SeekableReadStream;
27
class
WriteStream;
28
}
29
30
namespace
Sludge
{
31
32
class
SludgeEngine;
33
34
struct
FrozenStuffStruct;
35
36
class
CursorManager
{
37
public
:
38
CursorManager
(
SludgeEngine
*vm);
39
virtual
~
CursorManager
();
40
41
void
init();
42
void
kill();
43
44
// cursor
45
void
pickAnimCursor(
struct
PersonaAnimation
*pp);
46
void
displayCursor();
47
void
pasteCursor(
int
x,
int
y,
struct
PersonaAnimation
*c);
48
49
// freeze
50
void
freeze(
FrozenStuffStruct
*frozenStuff);
51
void
resotre(
FrozenStuffStruct
*frozenStuff);
52
53
// load & save
54
void
saveCursor(
Common::WriteStream
*stream);
55
bool
loadCursor(
Common::SeekableReadStream
*stream);
56
57
private
:
58
SludgeEngine
*_vm;
59
60
PersonaAnimation
*_mouseCursorAnim;
61
int
_mouseCursorFrameNum;
62
int
_mouseCursorCountUp;
63
};
64
65
}
// End of namespace Sludge
66
67
#endif
Sludge::PersonaAnimation
Definition:
people.h:49
Common::WriteStream
Definition:
stream.h:77
Common::SeekableReadStream
Definition:
stream.h:745
Sludge::SludgeEngine
Definition:
sludge.h:68
Sludge
Definition:
builtin.h:27
Common
Definition:
algorithm.h:29
Sludge::FrozenStuffStruct
Definition:
freeze.h:41
Sludge::CursorManager
Definition:
cursors.h:36
engines
sludge
cursors.h
Generated on Sat Nov 23 2024 09:15:42 for ScummVM API documentation by
1.8.13