Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8406 in orxonox.OLD


Ignore:
Timestamp:
Jun 14, 2006, 5:33:06 PM (18 years ago)
Author:
bensch
Message:

cleanup

Location:
branches/script_engine/src/lib/script_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/account.cc

    r8405 r8406  
    1515  lua_Number m_balance;
    1616public:
    17   // static const char className[];
    18   static Lunar<Account>::RegType methods[];
    19 
    2017  Account(lua_State *L)      { m_balance = luaL_checknumber(L, 1); }
    2118  Account(double balance=0)    : m_balance(balance) { this->setClassID(CL_ACCOUNT, "Account"); }
     
    3128};
    3229
    33 //const char Account::className[] = "Account";
    3430
    35 Lunar<Account>::RegType Account::methods[] = {
    36       {"deposit", new ExecutorLua1<Account, float>(&Account::deposit)},
    37       {"withdraw", new ExecutorLua1<Account, float>(&Account::withdraw)},
    38       {"balance", new ExecutorLua0ret<Account, float>(&Account::balance)},
    39       {0,NULL}
    40     };
    4131
    4232CREATE_SCRIPTABLE_CLASS(Account, CL_ACCOUNT,
  • branches/script_engine/src/lib/script_engine/object.cc

    r8404 r8406  
    1111{
    1212public:
    13   static const char className[];
    14   static Lunar<Object>::RegType methods[];
    15 
    1613  Object(lua_State* L) {callCount = 0; }
    1714  Object(){callCount = 0;this->setClassID(CL_TEST_OBJECT, "Object");};
Note: See TracChangeset for help on using the changeset viewer.