the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3using namespace std;
4
5#include "WaterAnimal.h"
6
7class Player;
8
9class Squid : public WaterAnimal
10{
11public:
12 eINSTANCEOF GetType() { return eTYPE_SQUID; }
13 static Entity *create(Level *level) { return new Squid(level); }
14
15 void _init();
16
17 float xBodyRot, xBodyRotO;
18 float zBodyRot, zBodyRotO;
19
20 float tentacleMovement, oldTentacleMovement;
21 float tentacleAngle, oldTentacleAngle;
22
23private:
24 float speed;
25 float tentacleSpeed;
26 float rotateSpeed;
27
28 float tx, ty, tz;
29
30public:
31 Squid(Level *level);
32
33protected:
34 virtual void registerAttributes();
35 virtual int getAmbientSound();
36 virtual int getHurtSound();
37 virtual int getDeathSound();
38 virtual float getSoundVolume();
39 virtual int getDeathLoot();
40 virtual bool makeStepSound();
41 virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
42
43public:
44 virtual bool isInWater();
45 virtual void aiStep();
46 virtual void travel(float xa, float ya);
47
48protected:
49 virtual void serverAiStep();
50
51public:
52 virtual bool canSpawn();
53};