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
57
src/world/entity/monster/Monster.h
Executable file
57
src/world/entity/monster/Monster.h
Executable file
|
|
@ -0,0 +1,57 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_ENTITY_MONSTER__Monster_H__
|
||||
#define NET_MINECRAFT_WORLD_ENTITY_MONSTER__Monster_H__
|
||||
|
||||
//package net.minecraft.world.entity->monster;
|
||||
|
||||
#include "../PathfinderMob.h"
|
||||
|
||||
class Level;
|
||||
class Entity;
|
||||
//class DamageSource;
|
||||
class CompoundTag;
|
||||
|
||||
class Monster: public PathfinderMob//implements Enemy
|
||||
{
|
||||
typedef PathfinderMob super;
|
||||
public:
|
||||
Monster(Level* level);
|
||||
|
||||
void aiStep();
|
||||
void tick();
|
||||
|
||||
//bool hurt(DamageSource* source, int dmg) {
|
||||
bool hurt(Entity* sourceEntity, int dmg);
|
||||
|
||||
/*@Override*/
|
||||
bool canSpawn();
|
||||
|
||||
int getCreatureBaseType() const;
|
||||
|
||||
bool doHurtTarget(Entity* target);
|
||||
void setTarget(Mob* mob);
|
||||
Mob* getTarget();
|
||||
|
||||
Mob* getLastHurtByMob();
|
||||
void setLastHurtByMob(Mob* mob);
|
||||
virtual int getAttackDamage(Entity* target);
|
||||
protected:
|
||||
Entity* findAttackTarget();
|
||||
|
||||
bool isDarkEnoughToSpawn();
|
||||
/**
|
||||
* Performs hurt action, returns if successful
|
||||
*
|
||||
* @param target
|
||||
* @return
|
||||
*/
|
||||
void checkHurtTarget(Entity* target, float distance);
|
||||
|
||||
float getWalkTargetValue(int x, int y, int z);
|
||||
virtual int getAttackTime();
|
||||
int attackDamage;
|
||||
int targetId;
|
||||
|
||||
int lastHurtByMobId;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_ENTITY_MONSTER__Monster_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue