mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-23 02:49:48 +00:00
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
55
src/server/ServerPlayer.h
Executable file
55
src/server/ServerPlayer.h
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
#ifndef ServerPlayer_H__
|
||||
#define ServerPlayer_H__
|
||||
|
||||
#include "../world/entity/player/Player.h"
|
||||
#include "../world/inventory/BaseContainerMenu.h"
|
||||
|
||||
class Minecraft;
|
||||
class FurnaceTileEntity;
|
||||
class ItemInstance;
|
||||
class FillingContainer;
|
||||
class ChestTileEntity;
|
||||
|
||||
class ServerPlayer: public Player,
|
||||
public IContainerListener
|
||||
{
|
||||
typedef Player super;
|
||||
public:
|
||||
ServerPlayer(Minecraft* minecraft, Level* level);
|
||||
|
||||
~ServerPlayer();
|
||||
|
||||
void aiStep();
|
||||
void tick();
|
||||
void take(Entity* e, int orgCount);
|
||||
|
||||
void hurtArmor(int dmg);
|
||||
|
||||
void displayClientMessage(const std::string& messageId);
|
||||
|
||||
void openContainer(ChestTileEntity* furnace);
|
||||
void openFurnace(FurnaceTileEntity* furnace);
|
||||
void closeContainer();
|
||||
void doCloseContainer();
|
||||
|
||||
bool hasResource( int id );
|
||||
//
|
||||
// IContainerListener
|
||||
//
|
||||
void setContainerData(BaseContainerMenu* menu, int id, int value);
|
||||
void slotChanged(BaseContainerMenu* menu, int slot, const ItemInstance& item, bool isResultSlot);
|
||||
void refreshContainer(BaseContainerMenu* menu, const std::vector<ItemInstance>& items);
|
||||
|
||||
virtual void stopSleepInBed(bool forcefulWakeUp, bool updateLevelList, bool saveRespawnPoint);
|
||||
|
||||
void completeUsingItem();
|
||||
private:
|
||||
void nextContainerCounter();
|
||||
void setContainerMenu( BaseContainerMenu* menu );
|
||||
|
||||
Minecraft* _mc;
|
||||
int _sentHealth;
|
||||
int _containerCounter;
|
||||
};
|
||||
|
||||
#endif /*ServerPlayer_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue