 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
24 archetype *at, *head = NULL, *last_more = NULL;
39 head = last_more = at;
47 if (last_more != NULL) {
All archetypes in the game.
#define QUERY_FLAG(xyz, p)
archetype * get_archetype_struct(void)
Allocates, initialises and returns the pointer to an archetype structure.
struct archetype * arch
Pointer to archetype.
float speed_left
How much speed is left to spend this round.
archetype * head
The main part of a linked object.
other than new code I created new archetypes
#define MAP_STYLE
Active objects shouldn't be put on active list.
int16_t y
Position in the map for this object.
Base class to be informed of where an asset is defined.
T * define(const Key &name, T *asset)
Define an asset, erasing an existing one.
object clone
An object from which to do object_copy()
virtual void load(BufferReader *reader, const std::string &filename) override
Load assets from the specified reader.
const Face * face
Face with colors.
virtual void assetDefined(const archetype *asset, const std::string &filename)
Function called when an asset is defined in a file.
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
#define FLAG_MONSTER
Will attack players.
object * head
Points to the main object of a large body.
Archetypes * m_archetypes
int8_t tail_y
Where the lower right most portion of the object is in comparison to the head.
sstring name
More definite name, like "generate_kobold".
object * more
Pointer to the rest of a large body of objects.
AssetsTracker * m_tracker
ArchetypeLoader(Archetypes *archetypes, AssetsTracker *tracker)
int load_object_from_reader(BufferReader *reader, object *op, int map_flags, bool arch_init, bool artifact_init)
Load an object from the specified reader, stopping when the object is complete.