Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Labels.cpp File Reference

Go to the source code of this file.

Functions

LabelsgetLabels (lua_State *L)
int script_label_text (lua_State *L) throw ()
 void label_text(labelName, lang, text)


Function Documentation

Labels* getLabels lua_State *  L  )  [inline]
 

Definition at line 19 of file Labels.cpp.

00020 {
00021     return dynamic_cast<Labels*>(script_getLeader(L));
00022 }

int script_label_text lua_State *  L  )  throw ()
 

void label_text(labelName, lang, text)

Definition at line 28 of file Labels.cpp.

00029 {
00030     BEGIN_NOEXCEPTION;
00031     const char *labelName = luaL_checkstring(L, 1);
00032     const char *lang = luaL_checkstring(L, 2);
00033     const char *text = luaL_checkstring(L, 3);
00034 
00035     getLabels(L)->addLabel(labelName, lang, text);
00036     END_NOEXCEPTION;
00037     return 0;
00038 }


Generated on Wed Jun 1 09:54:32 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2