Crossfire Server, Trunk  R20513
Functions
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

static 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)
 
static void setup (void)
 
 START_TEST (test_find_best_apply_object_match)
 
END_TEST START_TEST (test_put_object_in_sack)
 
static void teardown (void)
 

Function Documentation

static END_TEST Suite* c_object_suite ( void  )
static

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, object_matches_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:

static void setup ( void  )
static

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, obj::inv, obj::name, object_insert_in_ob(), and obj::title.

Here is the call graph for this function:

END_TEST START_TEST ( test_put_object_in_sack  )
static void teardown ( void  )
static

Definition at line 43 of file check_c_object.c.

Referenced by c_object_suite().

Here is the caller graph for this function: