forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
38
src/world/entity/monster/PigZombie.h
Executable file
38
src/world/entity/monster/PigZombie.h
Executable file
@@ -0,0 +1,38 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_ENTITY_MONSTER__PigZombie_H__
|
||||
#define NET_MINECRAFT_WORLD_ENTITY_MONSTER__PigZombie_H__
|
||||
|
||||
#include "Zombie.h"
|
||||
class ItemInstance;
|
||||
class PigZombie : public Zombie {
|
||||
typedef Zombie super;
|
||||
public:
|
||||
PigZombie(Level* level);
|
||||
bool useNewAi();
|
||||
void tick();
|
||||
std::string getTexture();
|
||||
bool canSpawn();
|
||||
void addAdditonalSaveData(CompoundTag* entityTag);
|
||||
void readAdditionalSaveData(CompoundTag* tag);
|
||||
bool hurt(Entity* sourceEntity, int dmg);
|
||||
bool interact(Player* player);
|
||||
int getEntityTypeId() const;
|
||||
virtual int getAttackTime();
|
||||
ItemInstance* getCarriedItem();
|
||||
protected:
|
||||
Entity* findAttackTarget();
|
||||
const char* getAmbientSound();
|
||||
std::string getHurtSound();
|
||||
std::string getDeathSound();
|
||||
void dropDeathLoot();
|
||||
int getDeathLoot();
|
||||
private:
|
||||
void alert(Entity* target);
|
||||
|
||||
private:
|
||||
int angerTime;
|
||||
int playAngrySoundIn;
|
||||
int stunedTime;
|
||||
ItemInstance weapon;
|
||||
};
|
||||
|
||||
#endif /* NET_MINECRAFT_WORLD_ENTITY_MONSTER__PigZombie_H__ */
|
||||
Reference in New Issue
Block a user