forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
48
src/client/model/Model.h
Executable file
48
src/client/model/Model.h
Executable file
@@ -0,0 +1,48 @@
|
||||
#ifndef NET_MINECRAFT_CLIENT_MODEL__Model_H__
|
||||
#define NET_MINECRAFT_CLIENT_MODEL__Model_H__
|
||||
|
||||
//package net.minecraft.client.model;
|
||||
|
||||
#include <vector>
|
||||
#include "geom/ModelPart.h"
|
||||
|
||||
class Mob;
|
||||
class Entity;
|
||||
|
||||
class Model
|
||||
{
|
||||
protected:
|
||||
Model()
|
||||
: riding(false),
|
||||
attackTime(0),
|
||||
texWidth(64),
|
||||
texHeight(32),
|
||||
young(true)
|
||||
{}
|
||||
|
||||
public:
|
||||
virtual ~Model() {}
|
||||
|
||||
virtual void onGraphicsReset() {
|
||||
for (unsigned int i = 0; i < cubes.size(); ++i)
|
||||
cubes[i]->onGraphicsReset();
|
||||
}
|
||||
|
||||
virtual void render(Entity* e, float time, float r, float bob, float yRot, float xRot, float scale) {}
|
||||
virtual void renderHorrible(float time, float r, float bob, float yRot, float xRot, float scale) {}
|
||||
virtual void setupAnim(float time, float r, float bob, float yRot, float xRot, float scale) {}
|
||||
virtual void prepareMobModel(Mob* mob, float time, float r, float a) {}
|
||||
|
||||
float attackTime;
|
||||
bool riding;
|
||||
|
||||
int texWidth;
|
||||
int texHeight;
|
||||
|
||||
std::vector<ModelPart*> cubes;
|
||||
bool young;
|
||||
private:
|
||||
//Map<String, TexOffs> mappedTexOffs = new HashMap<String, TexOffs>();
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_CLIENT_MODEL__Model_H__*/
|
||||
Reference in New Issue
Block a user