1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-23 20:55:43 +02:00

Improve mobv2

This commit is contained in:
Perttu Ahola
2011-10-15 12:17:21 +03:00
parent 43a28f04fa
commit 5341bf59c2
11 changed files with 221 additions and 78 deletions

View File

@@ -155,8 +155,10 @@ public:
std::string getClientInitializationData();
void step(float dtime, bool send_recommended);
InventoryItem* createPickedUpItem(){return NULL;}
u16 punch(const std::string &toolname, v3f dir);
u16 punch(const std::string &toolname, v3f dir,
const std::string &playername);
private:
void sendPosition();
void setPropertyDefaults();
void readProperties();
void updateProperties();
@@ -182,6 +184,8 @@ private:
float m_die_age;
v2f m_size;
bool m_falling;
float m_disturb_timer;
std::string m_disturbing_player;
Settings *m_properties;
};