Crossfire Server, Trunk  R20739
check_monster_change.c 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.c:

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.c.

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.c.

References change_object(), FLAG_FREED, FLAG_MONSTER, FLAG_REMOVED, map_find_by_flag(), and QUERY_FLAG.

Referenced by START_TEST(), and teardown().

+ 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.c.

References change_suite(), Settings::debug, init(), 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.c.

Referenced by change_suite().

+ Here is the caller graph for this function:

◆ START_TEST()

START_TEST ( test_monster_change  )

◆ teardown()

static void teardown ( void  )
static

Definition at line 43 of file check_monster_change.c.

References do_monster_change().

Referenced by change_suite().

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