kills.cc File Reference

#include "AppHdr.h"
#include <algorithm>
#include "describe.h"
#include "mon-util.h"
#include "mon-stuff.h"
#include "files.h"
#include "ghost.h"
#include "libutil.h"
#include "place.h"
#include "travel.h"
#include "tags.h"
#include "kills.h"
#include "clua.h"
#include "options.h"
#include "viewchar.h"

Include dependency graph for kills.cc:


Defines

#define KILLS_MAJOR_VERSION   4
#define KILLS_MINOR_VERSION   1
#define KILLEXP_ACCESS(name, type, field)

Functions

 KILLEXP_ACCESS (base_name, string, base_name.c_str()) KILLEXP_ACCESS(desc
desc c_str ()) KILLEXP_ACCESS(isghost
void cluaopen_kills (lua_State *ls)

Variables

const char * kill_category_names []
 string
desc boolean
desc monnum

Define Documentation

#define KILLEXP_ACCESS ( name,
type,
field   ) 

Value:

static int kill_lualc_##name(lua_State *ls) \
    { \
        if (!lua_islightuserdata(ls, 1)) \
        { \
            luaL_argerror(ls, 1, "Unexpected argument type"); \
            return 0; \
        } \
          \
        kill_exp *ke = static_cast<kill_exp*>(lua_touserdata(ls, 1)); \
        if (ke) \
        { \
            lua_push##type(ls, ke->field); \
            return 1; \
        } \
        return 0; \
    }

#define KILLS_MAJOR_VERSION   4

#define KILLS_MINOR_VERSION   1


Function Documentation

desc c_str (  ) 

Type Constraints

void cluaopen_kills ( lua_State *  ls  ) 

KILLEXP_ACCESS ( base_name  ,
string  ,
base_name.  c_str() 
)


Variable Documentation

const char* kill_category_names[]

Initial value:

{
    "you",
    "collateral kills",
    "others",
}

desc monnum


Generated on Thu Jan 13 13:07:49 2011 by  doxygen 1.5.6