Debian Codegraph @

src/transform/castlebehaviors.pas

raw
1 {
2 Copyright 2006-2022 Michalis Kamburelis.
3
4 This file is part of "Castle Game Engine".
5
6 "Castle Game Engine" is free software; see the file COPYING.txt,
7 included in this distribution, for details about the copyright.
8
9 "Castle Game Engine" is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 ----------------------------------------------------------------------------
14 }
15
16 { Standard behaviors (TCastleBehavior descendants).
17 For example to express life, or creature intelligence, or playing sound. }
18 unit CastleBehaviors;
19
20 {$I castleconf.inc}
21
22 interface
23
24 uses Classes, Generics.Collections,
25 CastleVectors, CastleTransform, CastleTimeUtils, CastleClassUtils, CastleSectors,
26 CastleSoundEngine;
27
28 {$define read_interface}
29 {$I castlebehaviors_alive.inc}
30 {$I castlebehaviors_soundsource.inc}
31 {$I castlebehaviors_billboard.inc}
32 {$I castlebehaviors_sticktosurface.inc}
33 //{$I castlebehaviors_moveattack.inc}
34 {$undef read_interface}
35
36 implementation
37
38 uses SysUtils, Math,
39 CastleUtils, CastleLog, CastleBoxes, CastleComponentSerialize,
40 CastleCameras;
41
42 {$define read_implementation}
43 {$I castlebehaviors_alive.inc}
44 {$I castlebehaviors_soundsource.inc}
45 {$I castlebehaviors_billboard.inc}
46 {$I castlebehaviors_sticktosurface.inc}
47 // TODO {$I castlebehaviors_moveattack.inc}
48
49 initialization
50 // TODO-works but API not finalized yet: RegisterSerializableComponent(TCastleAliveBehavior, 'Alive');
51 RegisterSerializableComponent(TCastleSoundSource, 'Sound Source');
52 RegisterSerializableComponent(TCastleBillboard, 'Billboard');
53 RegisterSerializableComponent(TCastleStickToSurface, 'Stick To Surface');
54 // TODO RegisterSerializableComponent(TCastleMoveAttack, 'Move Attack');
55 end.