Crossfire Server, Trunk
Archetypes.cpp File Reference
#include "Archetypes.h"
#include <string.h>
+ Include dependency graph for Archetypes.cpp:

Go to the source code of this file.

Functions

template<>
archetypeasset_create (const std::string &name)
 
template<>
void asset_destroy (archetype *item)
 
static void mark_inv_not_removed (object *item)
 

Function Documentation

◆ asset_create()

template<>
archetype* asset_create ( const std::string &  name)

Definition at line 18 of file Archetypes.cpp.

References add_string(), archininventory::arch, CLEAR_FLAG, FLAG_REMOVED, get_archetype_struct(), and give::name.

+ Here is the call graph for this function:

◆ asset_destroy()

template<>
void asset_destroy ( archetype item)

Definition at line 26 of file Archetypes.cpp.

References free_arch(), and object_free_inventory().

+ Here is the call graph for this function:

◆ mark_inv_not_removed()

static void mark_inv_not_removed ( object item)
static

Recursively mark all items in inventory as not removed.

Parameters
itemwhat to start from.

Definition at line 53 of file Archetypes.cpp.

References CLEAR_FLAG, FLAG_REMOVED, and commongive::inv.

Referenced by Archetypes::replace().

+ Here is the caller graph for this function: