ScummVM API documentation
object.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 ULTIMA8_KERNEL_OBJECT_H
23
#define ULTIMA8_KERNEL_OBJECT_H
24
25
#include "ultima/ultima8/misc/classtype.h"
26
#include "ultima/ultima8/misc/common_types.h"
27
#include "ultima/ultima8/misc/debugger.h"
28
29
namespace
Common
{
30
class
ReadStream;
31
}
32
33
namespace
Ultima
{
34
namespace
Ultima8 {
35
36
enum
ReservedObjId {
37
kUndefinedId = 0,
38
kMainActorId = 1,
39
kGuardianId = 666
40
};
41
42
class
Usecode;
43
44
class
Object
{
45
public
:
46
Object
() : _objId(0xFFFF) {}
47
virtual
~
Object
();
48
49
ENABLE_RUNTIME_CLASSTYPE_BASE()
50
51
52
inline ObjId getObjId()
const
{
53
return
_objId;
54
}
55
58
virtual
ObjId assignObjId();
59
61
virtual
void
clearObjId();
62
64
virtual
Common::String
dumpInfo()
const
;
65
73
ProcId callUsecode(uint16 classid, uint16 offset,
74
const
uint8 *args = 0,
int
argsize = 0);
75
76
bool
loadData(
Common::ReadStream
*rs, uint32 version);
77
virtual
void
saveData(
Common::WriteStream
*ws);
78
79
protected
:
80
ObjId _objId;
81
};
82
83
}
// End of namespace Ultima8
84
}
// End of namespace Ultima
85
86
#endif
Common::String
Definition:
str.h:59
Common::WriteStream
Definition:
stream.h:77
Ultima
Definition:
detection.h:27
Ultima::Ultima8::Object
Definition:
object.h:44
Common
Definition:
algorithm.h:29
Common::ReadStream
Definition:
stream.h:385
engines
ultima
ultima8
kernel
object.h
Generated on Mon Mar 9 2026 09:10:22 for ScummVM API documentation by
1.8.13