mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-24 19:39:47 +00:00
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
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__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue