Atrinik Server  4.0
Data Structures | Macros | Typedefs | Functions | Variables
plugin_arena.c File Reference
#include <global.h>
#include <plugin.h>
#include <plugin_hooklist.h>
#include <stdarg.h>
#include <player.h>
#include <object.h>

Go to the source code of this file.

Data Structures

struct  arena_map_players
 
struct  arena_maps_struct
 

Macros

#define GLOBAL_NO_PROTOTYPES
 
#define PLUGIN_NAME   "Arena"
 
#define PLUGIN_VERSION   "Arena plugin 1.0"
 
#define logger_print   hooks->logger_print
 
#define ARENA_FLAG_NONE   0
 
#define ARENA_FLAG_PARTY   1
 
#define ARENA_FLAG_PARTY_PLAYERS   2
 

Typedefs

typedef struct arena_map_players arena_map_players
 
typedef struct arena_maps_struct arena_maps_struct
 

Functions

MODULEAPI void initPlugin (struct plugin_hooklist *hooklist)
 
MODULEAPI void closePlugin (void)
 
MODULEAPI void getPluginProperty (int *type,...)
 
MODULEAPI void postinitPlugin (void)
 
static int check_arena_player (object *op, arena_map_players *player_list)
 
static void remove_arena_player (object *op, arena_map_players **player_list)
 
static void arena_map_parse_line (arena_maps_struct *arena_map, const char *line)
 
static void arena_map_parse_script (const char *arena_script, object *exit_ob, arena_maps_struct *arena_map)
 
static int arena_full (arena_maps_struct *arena_map)
 
static int arena_enter (object *who, object *exit_ob, const char *arena_script)
 
static int arena_sign (object *who, const char *path)
 
static int arena_event (object *who, object *exit_ob, const char *event_options, const char *arena_script)
 
static int arena_leave (object *who)
 
MODULEAPI void * triggerEvent (int *type,...)
 

Variables

arena_maps_structarena_maps
 
struct plugin_hooklist * hooks
 

Detailed Description

This file handles the Arena plugin functions.

Definition in file plugin_arena.c.