* Add Pig

This commit is contained in:
iProgramInCpp
2023-12-06 21:58:28 +02:00
parent 805087d36a
commit 3443349df0
19 changed files with 364 additions and 63 deletions

View File

@@ -0,0 +1,28 @@
/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#include "Animal.hpp"
class Pig : public Animal
{
public:
Pig(Level* pLevel);
std::string getAmbientSound() override;
std::string getDeathSound() override;
std::string getHurtSound() override;
int getDeathLoot() override;
int getEntityTypeId() override;
int getMaxHealth() override;
bool interact(Player*) override;
bool hasSaddle();
void setSaddle(bool b);
Entity* getBreedOffspring(Animal* pOther);
};