mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-04 04:12:59 +00:00
39 lines
962 B
C++
39 lines
962 B
C++
#pragma once
|
|
|
|
#include "MobRenderer.h"
|
|
|
|
#ifdef _XBOX
|
|
class EnderDragon;
|
|
#endif
|
|
class DragonModel;
|
|
|
|
class EnderDragonRenderer : public MobRenderer {
|
|
public:
|
|
static std::shared_ptr<EnderDragon> bossInstance;
|
|
|
|
private:
|
|
static int currentModel;
|
|
|
|
protected:
|
|
DragonModel* dragonModel;
|
|
|
|
public:
|
|
EnderDragonRenderer();
|
|
|
|
protected:
|
|
virtual void setupRotations(std::shared_ptr<Mob> _mob, float bob,
|
|
float bodyRot, float a);
|
|
|
|
protected:
|
|
void renderModel(std::shared_ptr<Entity> _mob, float wp, float ws,
|
|
float bob, float headRotMinusBodyRot, float headRotx,
|
|
float scale);
|
|
|
|
public:
|
|
virtual void render(std::shared_ptr<Entity> _mob, double x, double y,
|
|
double z, float rot, float a);
|
|
|
|
protected:
|
|
virtual void additionalRendering(std::shared_ptr<Mob> _mob, float a);
|
|
virtual int prepareArmor(std::shared_ptr<Mob> _mob, int layer, float a);
|
|
}; |