____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

tolua_map.cpp File Reference

#include "tolua++.h"
#include "tolua_event.h"
#include "lauxlib.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

Go to the source code of this file.

Functions

static int tolua_newmetatable (lua_State *L, const char *name)
static void mapsuper (lua_State *L, const char *name, const char *base)
static void set_ubox (lua_State *L)
static void mapinheritance (lua_State *L, const char *name, const char *base)
static int tolua_bnd_type (lua_State *L)
static int tolua_bnd_takeownership (lua_State *L)
static int tolua_bnd_releaseownership (lua_State *L)
static int tolua_bnd_cast (lua_State *L)
static int tolua_bnd_inherit (lua_State *L)
TOLUA_API void tolua_open (lua_State *L)
TOLUA_API void * tolua_copy (lua_State *L, void *value, unsigned int size)
TOLUA_API int tolua_default_collect (lua_State *tolua_S)
TOLUA_API int tolua_register_gc (lua_State *L, int lo)
TOLUA_API void tolua_usertype (lua_State *L, const char *type)
TOLUA_API void tolua_beginmodule (lua_State *L, const char *name)
TOLUA_API void tolua_endmodule (lua_State *L)
TOLUA_API void tolua_module (lua_State *L, const char *name, int hasvar)
static void push_collector (lua_State *L, const char *type, lua_CFunction col)
TOLUA_API void tolua_cclass (lua_State *L, const char *lname, const char *name, const char *base, lua_CFunction col)
TOLUA_API void tolua_function (lua_State *L, const char *name, lua_CFunction func)
TOLUA_API void tolua_constant (lua_State *L, const char *name, double value)
TOLUA_API void tolua_variable (lua_State *L, const char *name, lua_CFunction get, lua_CFunction set)
static int const_array (lua_State *L)
TOLUA_API void tolua_array (lua_State *L, const char *name, lua_CFunction get, lua_CFunction set)
TOLUA_API void tolua_dobuffer (lua_State *L, char *B, unsigned int size, const char *name)


Function Documentation

static int const_array ( lua_State *  L  )  [static]

Definition at line 656 of file tolua_map.cpp.

Referenced by tolua_array().

static void mapinheritance ( lua_State *  L,
const char *  name,
const char *  base 
) [static]

Definition at line 122 of file tolua_map.cpp.

References set_ubox().

Referenced by tolua_cclass().

static void mapsuper ( lua_State *  L,
const char *  name,
const char *  base 
) [static]

Definition at line 48 of file tolua_map.cpp.

Referenced by tolua_cclass(), and tolua_usertype().

static void push_collector ( lua_State *  L,
const char *  type,
lua_CFunction  col 
) [static]

Definition at line 493 of file tolua_map.cpp.

Referenced by tolua_cclass().

static void set_ubox ( lua_State *  L  )  [static]

Definition at line 90 of file tolua_map.cpp.

Referenced by mapinheritance().

TOLUA_API void tolua_array ( lua_State *  L,
const char *  name,
lua_CFunction  get,
lua_CFunction  set 
)

Definition at line 665 of file tolua_map.cpp.

References const_array().

Referenced by tolua_stratagus_open().

TOLUA_API void tolua_beginmodule ( lua_State *  L,
const char *  name 
)

Definition at line 405 of file tolua_map.cpp.

Referenced by tolua_open(), and tolua_stratagus_open().

static int tolua_bnd_cast ( lua_State *  L  )  [static]

Definition at line 209 of file tolua_map.cpp.

References tolua_pushusertype(), tolua_tostring(), tolua_touserdata(), and tolua_tousertype().

Referenced by tolua_open().

static int tolua_bnd_inherit ( lua_State *  L  )  [static]

Definition at line 240 of file tolua_map.cpp.

Referenced by tolua_open().

static int tolua_bnd_releaseownership ( lua_State *  L  )  [static]

Definition at line 178 of file tolua_map.cpp.

Referenced by tolua_open().

static int tolua_bnd_takeownership ( lua_State *  L  )  [static]

Definition at line 154 of file tolua_map.cpp.

References tolua_register_gc().

Referenced by tolua_open().

static int tolua_bnd_type ( lua_State *  L  )  [static]

Definition at line 146 of file tolua_map.cpp.

References tolua_typename().

Referenced by tolua_open().

TOLUA_API void tolua_cclass ( lua_State *  L,
const char *  lname,
const char *  name,
const char *  base,
lua_CFunction  col 
)

Definition at line 520 of file tolua_map.cpp.

References mapinheritance(), mapsuper(), and push_collector().

Referenced by tolua_stratagus_open().

TOLUA_API void tolua_constant ( lua_State *  L,
const char *  name,
double  value 
)

Definition at line 602 of file tolua_map.cpp.

References tolua_pushnumber().

Referenced by tolua_stratagus_open().

TOLUA_API void* tolua_copy ( lua_State *  L,
void *  value,
unsigned int  size 
)

TOLUA_API int tolua_default_collect ( lua_State *  tolua_S  ) 

Definition at line 358 of file tolua_map.cpp.

References tolua_tousertype().

Referenced by class_gc_event().

TOLUA_API void tolua_dobuffer ( lua_State *  L,
char *  B,
unsigned int  size,
const char *  name 
)

Definition at line 695 of file tolua_map.cpp.

Referenced by tolua_stratagus_open().

TOLUA_API void tolua_endmodule ( lua_State *  L  ) 

Definition at line 419 of file tolua_map.cpp.

Referenced by tolua_open(), and tolua_stratagus_open().

TOLUA_API void tolua_function ( lua_State *  L,
const char *  name,
lua_CFunction  func 
)

Definition at line 579 of file tolua_map.cpp.

Referenced by tolua_open(), and tolua_stratagus_open().

TOLUA_API void tolua_module ( lua_State *  L,
const char *  name,
int  hasvar 
)

Definition at line 428 of file tolua_map.cpp.

References tolua_ismodulemetatable(), and tolua_moduleevents().

Referenced by tolua_open(), and tolua_stratagus_open().

static int tolua_newmetatable ( lua_State *  L,
const char *  name 
) [static]

Definition at line 27 of file tolua_map.cpp.

References tolua_classevents().

Referenced by tolua_open(), and tolua_usertype().

TOLUA_API void tolua_open ( lua_State *  L  ) 

TOLUA_API int tolua_register_gc ( lua_State *  L,
int  lo 
)

TOLUA_API void tolua_usertype ( lua_State *  L,
const char *  type 
)

Definition at line 391 of file tolua_map.cpp.

References mapsuper(), and tolua_newmetatable().

Referenced by tolua_reg_types().

TOLUA_API void tolua_variable ( lua_State *  L,
const char *  name,
lua_CFunction  get,
lua_CFunction  set 
)

Definition at line 613 of file tolua_map.cpp.

Referenced by tolua_stratagus_open().


Generated on Sat Feb 21 00:28:21 2009 for Bos Wars by  doxygen 1.5.6