mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-31 01:42:57 +00:00
17 lines
453 B
C++
17 lines
453 B
C++
#pragma once
|
|
|
|
#include "Cow.h"
|
|
|
|
class MushroomCow : public Cow {
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_MUSHROOMCOW; }
|
|
static Entity* create(Level* level) { return new MushroomCow(level); }
|
|
|
|
public:
|
|
MushroomCow(Level* level);
|
|
|
|
virtual bool mobInteract(std::shared_ptr<Player> player);
|
|
virtual bool canSpawn(); // 4J added
|
|
virtual std::shared_ptr<AgableMob> getBreedOffspring(
|
|
std::shared_ptr<AgableMob> target);
|
|
}; |