Crossfire Server, Trunk
check_monster_change.cpp File Reference
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
#include <sproto.h>
+ Include dependency graph for check_monster_change.cpp:

Go to the source code of this file.

Functions

static Suite * change_suite (void)
 
static objectdo_monster_change (object *op, mapstruct *map, short expect, const char *new_name)
 
int main (void)
 
static void setup (void)
 
 START_TEST (test_monster_change)
 
static void teardown (void)
 

Function Documentation

◆ change_suite()

static Suite* change_suite ( void  )
static

Definition at line 159 of file check_monster_change.cpp.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ do_monster_change()

static END_TEST object * do_monster_change ( object op,
mapstruct map,
short  expect,
const char *  new_name 
)
static

Function to change the object and return the result.

Parameters
opThe object to change
mapThe map we should look for the new object on
expect1 if success expected, 0 if failure expected
Returns
Pointer to the new object, if successful, pointer to the old object if failure.

Definition at line 128 of file check_monster_change.cpp.

References change_object(), FAIL_UNLESS, FLAG_FREED, FLAG_MONSTER, FLAG_REMOVED, disinfect::map, map_find_by_flag(), give::op, QUERY_FLAG, diamondslots::x, and diamondslots::y.

Referenced by START_TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 172 of file check_monster_change.cpp.

References cctk_setdatadir(), change_suite(), Settings::debug, init(), llevError, and settings.

+ Here is the call graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 40 of file check_monster_change.cpp.

Referenced by change_suite().

+ Here is the caller graph for this function:

◆ START_TEST()

◆ teardown()

static void teardown ( void  )
static

Definition at line 43 of file check_monster_change.cpp.

Referenced by change_suite().

+ Here is the caller graph for this function: