mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-23 19:09:46 +00:00
Added capes (needs improvement)
This commit is contained in:
parent
0db3a547c7
commit
97daa795fb
5 changed files with 277 additions and 21 deletions
|
|
@ -44,9 +44,14 @@ public:
|
|||
virtual std::string getTexture();
|
||||
virtual void setTextureName(const std::string& name);
|
||||
|
||||
virtual bool isAlive();
|
||||
// Optional player cape texture (non-null on clients when available)
|
||||
virtual std::string getCapeTexture();
|
||||
virtual void setCapeTextureName(const std::string& name);
|
||||
|
||||
virtual bool isAlive();
|
||||
virtual bool isPickable();
|
||||
virtual bool isPushable();
|
||||
|
||||
virtual bool isShootable();
|
||||
|
||||
MoveControl* getMoveControl();
|
||||
|
|
@ -213,7 +218,22 @@ protected:
|
|||
float walkingSpeed;
|
||||
float flyingSpeed;
|
||||
|
||||
// Cape inertia positions
|
||||
double xCape, yCape, zCape;
|
||||
double xc, yc, zc;
|
||||
|
||||
public:
|
||||
// Cape position accessors (for renderers)
|
||||
double getCapeX() const { return xCape; }
|
||||
double getCapeY() const { return yCape; }
|
||||
double getCapeZ() const { return zCape; }
|
||||
|
||||
double getCapePrevX() const { return xc; }
|
||||
double getCapePrevY() const { return yc; }
|
||||
double getCapePrevZ() const { return zc; }
|
||||
|
||||
std::string textureName;
|
||||
std::string capeTextureName;
|
||||
std::string modelName;
|
||||
int deathScore;
|
||||
float oRun, run;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue