Fix some warnings on some compilers

ItemStack is a struct, not a class
CollisionInfo is a struct, not a class
InventoryAction is abstract and it needs a virtual destructor
master
Giuseppe Bilotta 2012-01-23 20:23:56 +01:00 committed by Perttu Ahola
parent 365f7a5bfe
commit 64af6d3afe
4 changed files with 4 additions and 3 deletions

View File

@ -103,6 +103,7 @@ struct InventoryAction
virtual void apply(InventoryManager *mgr, ServerActiveObject *player, virtual void apply(InventoryManager *mgr, ServerActiveObject *player,
IGameDef *gamedef) = 0; IGameDef *gamedef) = 0;
virtual void clientApply(InventoryManager *mgr, IGameDef *gamedef) = 0; virtual void clientApply(InventoryManager *mgr, IGameDef *gamedef) = 0;
virtual ~InventoryAction() {};
}; };
struct IMoveAction : public InventoryAction struct IMoveAction : public InventoryAction

View File

@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class Map; class Map;
class IGameDef; class IGameDef;
class CollisionInfo; struct CollisionInfo;
class Player class Player
{ {

View File

@ -30,7 +30,7 @@ class ServerActiveObject;
class ServerRemotePlayer; class ServerRemotePlayer;
typedef struct lua_State lua_State; typedef struct lua_State lua_State;
struct LuaEntityProperties; struct LuaEntityProperties;
class ItemStack; struct ItemStack;
struct PointedThing; struct PointedThing;
//class IGameDef; //class IGameDef;

View File

@ -42,7 +42,7 @@ Some planning
*/ */
class ServerEnvironment; class ServerEnvironment;
class ItemStack; struct ItemStack;
class Player; class Player;
struct ToolDiggingProperties; struct ToolDiggingProperties;