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.
24 lines
456 B
C++
24 lines
456 B
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "Throwable.h"
|
|
|
|
class HitResult;
|
|
|
|
class Snowball : public Throwable
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_SNOWBALL; }
|
|
static Entity *create(Level *level) { return new Snowball(level); }
|
|
|
|
private:
|
|
void _init();
|
|
|
|
public:
|
|
Snowball(Level *level);
|
|
Snowball(Level *level, std::shared_ptr<Mob> mob);
|
|
Snowball(Level *level, double x, double y, double z);
|
|
|
|
protected:
|
|
virtual void onHit(HitResult *res);
|
|
}; |