This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
17 lines
422 B
C++
17 lines
422 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 interact(std::shared_ptr<Player> player);
|
|
virtual bool canSpawn(); // 4J added
|
|
virtual std::shared_ptr<AgableMob> getBreedOffspring(std::shared_ptr<AgableMob> target);
|
|
}; |