Crossfire Server, Branches 1.12
R18729
|
#include <global.h>
#include <stdlib.h>
#include <check.h>
#include <loader.h>
#include <toolkit_common.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
END_TEST Suite * | c_object_suite (void) |
static object * | find_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) |
END_TEST Suite* c_object_suite | ( | void | ) |
Definition at line 174 of file check_c_object.c.
References setup(), and teardown().
Referenced by main().
|
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().
int main | ( | void | ) |
Definition at line 188 of file check_c_object.c.
References c_object_suite(), Settings::debug, init(), Settings::logfilename, and settings.
void setup | ( | void | ) |
Definition at line 40 of file check_c_object.c.
Referenced by c_object_suite().
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.
END_TEST START_TEST | ( | test_put_object_in_sack | ) |
Definition at line 95 of file check_c_object.c.
References obj::above, obj::container, CONTAINER, create_archetype(), obj::env, FLAG_APPLIED, free_map(), free_object(), get_empty_map(), GET_MAP_OB, insert_ob_in_map_at(), obj::inv, obj::nrof, put_object_in_sack(), remove_ob(), SET_FLAG, test_map, obj::type, obj::weight, and obj::weight_limit.
void teardown | ( | void | ) |
Definition at line 43 of file check_c_object.c.
Referenced by c_object_suite().