lua/wrappers/game/lua_character.cpp
/**
	 * Adds the given amount of experience to the total amount of 
	 * experience this character has. The total will always be capped
	 * at the characters max level if they have one.
	 * @param integer experience The amount of experience to add.
	 * @returns am.character This
	 */
Adds the given amount of experience to the total amount of
experience this character has. The total will always be capped
at the characters max level if they have one.
@param integer experience The amount of experience to add.
Adds the given amount of experience to the total amount of experience this character has . The total will always be capped at the characters max level if they have one . @param integer experience The amount of experience to add .
int Character_add_experience(lua_State *lua)
	{
		Character *obj = castUData<Character>(lua, 1);
		if (obj)
		{
			if (lua_isnum(lua, 2))
			{
				obj->addExperience(lua_tointeger(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "add_experience", "integer experience");
		}
		return LuaState::expectedContext(lua, "add_experience", "am.character");
	}
int Character_add_experience ( lua_State * lua ) { Character * obj = castUData < Character > ( lua , 1 ) ; if ( obj ) { if ( lua_isnum ( lua , 2 ) ) { obj -> addExperience ( lua_tointeger ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Adds the given amount of experience to the total amount of
 experience this character has.
Adds the given amount of experience to the total amount of experience this character has .