mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 15:23:44 +00:00
33 lines
886 B
C++
33 lines
886 B
C++
#pragma once
|
|
|
|
#include "Model.h"
|
|
|
|
class ModelPart;
|
|
|
|
class VillagerGolemModel : public Model {
|
|
public:
|
|
ModelPart *head, *body, *arm0, *arm1, *leg0, *leg1;
|
|
|
|
// VillagerGolemModel()
|
|
//{
|
|
// this(0);
|
|
// }
|
|
|
|
// VillagerGolemModel(float g)
|
|
//{
|
|
// this(g, -7);
|
|
// }
|
|
|
|
VillagerGolemModel(float g = 0.0f, float yOffset = -7.0f);
|
|
|
|
void render(std::shared_ptr<Entity> entity, float time, float r, float bob,
|
|
float yRot, float xRot, float scale, bool usecompiled);
|
|
void setupAnim(float time, float r, float bob, float yRot, float xRot,
|
|
float scale, std::shared_ptr<Entity> entity,
|
|
unsigned int uiBitmaskOverrideAnim = 0);
|
|
void prepareMobModel(std::shared_ptr<LivingEntity> mob, float time, float r,
|
|
float a);
|
|
|
|
private:
|
|
float triangleWave(float bob, float period);
|
|
}; |