Crossfire Server, Branches 1.12  R18729
check_c_object.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_c_object.c:

Go to the source code of this file.

Functions

END_TEST Suite * c_object_suite (void)
 
static objectfind_best_apply_object_match (object *start, object *pl, const char *params, int aflag)
 
int main (void)
 
void setup (void)
 
 START_TEST (test_find_best_apply_object_match)
 
END_TEST START_TEST (test_put_object_in_sack)
 
void teardown (void)
 

Function Documentation

END_TEST Suite* c_object_suite ( void  )

Definition at line 174 of file check_c_object.c.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static object* find_best_apply_object_match ( object start,
object pl,
const char *  params,
int  aflag 
)
static

Definition at line 47 of file check_c_object.c.

References AP_APPLY, AP_UNAPPLY, obj::below, FLAG_APPLIED, obj::invisible, item_matched_string(), and QUERY_FLAG.

Referenced by START_TEST().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( void  )

Definition at line 188 of file check_c_object.c.

References c_object_suite(), Settings::debug, init(), Settings::logfilename, and settings.

+ Here is the call graph for this function:

void setup ( void  )

Definition at line 40 of file check_c_object.c.

Referenced by c_object_suite().

+ Here is the caller graph for this function:

START_TEST ( test_find_best_apply_object_match  )

Definition at line 66 of file check_c_object.c.

References add_string(), CLEAR_FLAG, create_archetype(), find_best_apply_object_match(), FLAG_IDENTIFIED, insert_ob_in_ob(), obj::inv, obj::name, and obj::title.

+ Here is the call graph for this function:

END_TEST START_TEST ( test_put_object_in_sack  )
void teardown ( void  )

Definition at line 43 of file check_c_object.c.

Referenced by c_object_suite().

+ Here is the caller graph for this function: