#include "player.h"
#include "constants.h"
-#include "utility.h"
#include "gamedef.h"
#include "connection.h" // PEER_ID_INEXISTENT
#include "settings.h"
#include "content_sao.h"
+#include "util/numeric.h"
Player::Player(IGameDef *gamedef):
touching_ground(false),
updateName("<not set>");
inventory.clear();
inventory.addList("main", PLAYER_INVENTORY_SIZE);
- inventory.addList("craft", 9);
+ InventoryList *craft = inventory.addList("craft", 9);
+ craft->setWidth(3);
inventory.addList("craftpreview", 1);
inventory.addList("craftresult", 1);
+
+ // Can be redefined via Lua
+ inventory_formspec = "size[8,7.5]"
+ //"image[1,0.6;1,2;player.png]"
+ "list[current_player;main;0,3.5;8,4;]"
+ "list[current_player;craft;3,0;3,3;]"
+ "list[current_player;craftpreview;7,1;1,1;]";
}
Player::~Player()
RemotePlayer
*/
+
+
+
+
void RemotePlayer::setPosition(const v3f &position)
{
Player::setPosition(position);