lua/wrappers/game/lua_game_object.cpp
/**
	 * Sets if the GameObject is fixed to the grid or not.
	 * If a GameObject is fixed to the grid, they cannot move to positions
	 * other than the center of each grid space.
	 * @param boolean fixed Sets the fixed to grid value.
	 * @returns am.GameObject This
	 */
Sets if the GameObject is fixed to the grid or not.
If a GameObject is fixed to the grid, they cannot move to positions
other than the center of each grid space.
@param boolean fixed Sets the fixed to grid value.
Sets if the GameObject is fixed to the grid or not . If a GameObject is fixed to the grid they cannot move to positions other than the center of each grid space . @param boolean fixed Sets the fixed to grid value .
int GameObject_fixed_to_grid(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}
		if (lua_gettop(lua) == 1)
		{
			lua_pushboolean(lua, obj->isFixedToGrid());
			return 1;
		}
		else if (lua_isbool(lua, 2))
		{
			obj->setFixedToGrid(lua_tobool(lua, 2));
			lua_first(lua);
		}
		return LuaState::expectedArgs(lua, "fixed_to_grid", "boolean fixed");
	}
int GameObject_fixed_to_grid ( lua_State * lua , GameObject * obj ) { if ( ! obj ) { return 0 ; } if ( lua_gettop ( lua ) == 1 ) { lua_pushboolean ( lua , obj -> isFixedToGrid ( ) ) ; return 1 ; } else if ( lua_isbool ( lua , 2 ) ) { obj -> setFixedToGrid ( lua_tobool ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
Sets if the GameObject is fixed to the grid or not.
Sets if the GameObject is fixed to the grid or not .