Free Electron
Mortal.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __intelligence_Mortal_h__
8 #define __intelligence_Mortal_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Mortal RecordView
16 
17  @ingroup intelligence
18 *//***************************************************************************/
19 class FE_DL_EXPORT Mortal: public Audible
20 {
21  public:
22  Functor<String> faction;
23  Functor<String> deathSong;
24  Functor<String> deathSpawn;
25 
26  Mortal(void) { setName("Mortal"); }
27 virtual void addFunctors(void)
28  {
30 
31  add(faction, FE_USE("ai:faction"));
32  add(deathSong, FE_SPEC("ai:deathSong",
33  "Sound started on termination"));
34  add(deathSpawn, FE_SPEC("ai:deathSpawn",
35  "Layout of object generated on termination"));
36  }
37 virtual void initializeRecord(void)
38  {
40 
41  identifier()="Mortal";
42  }
43 };
44 
45 } /* namespace ext */
46 } /* namespace fe */
47 
48 #endif /* __intelligence_Mortal_h__ */
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Audible.h:62
kernel
Definition: namespace.dox:3
Bound accessor in a RecordView.
Definition: RecordView.h:147
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Audible.h:41
Audible RecordView.
Definition: Audible.h:28
virtual void addFunctors(void)
Called at instantiation to add functors.
Definition: Mortal.h:27
virtual void initializeRecord(void)
Called at instantiation to initialize attributes.
Definition: Mortal.h:37
Mortal RecordView.
Definition: Mortal.h:19