Merge pull request #929 from archshift/master
Renamed mob source files to better fit the CamelCase naming style.
This commit is contained in:
commit
85e0b0eae9
@ -55,7 +55,7 @@ SightDistance=25.0
|
||||
MaxHealth=20
|
||||
IsFireproof=1
|
||||
|
||||
[Cavespider]
|
||||
[CaveSpider]
|
||||
AttackRange=2.0
|
||||
AttackRate=1
|
||||
AttackDamage=2.0
|
||||
|
@ -1,15 +1,14 @@
|
||||
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Cavespider.h"
|
||||
#include "CaveSpider.h"
|
||||
#include "../World.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cCavespider::cCavespider(void) :
|
||||
super("Cavespider", mtCaveSpider, "mob.spider.say", "mob.spider.death", 0.7, 0.5)
|
||||
cCaveSpider::cCaveSpider(void) :
|
||||
super("CaveSpider", mtCaveSpider, "mob.spider.say", "mob.spider.death", 0.7, 0.5)
|
||||
{
|
||||
}
|
||||
|
||||
@ -17,7 +16,7 @@ cCavespider::cCavespider(void) :
|
||||
|
||||
|
||||
|
||||
void cCavespider::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
void cCaveSpider::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
|
||||
@ -29,7 +28,7 @@ void cCavespider::Tick(float a_Dt, cChunk & a_Chunk)
|
||||
|
||||
|
||||
|
||||
void cCavespider::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||
void cCaveSpider::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||
{
|
||||
int LootingLevel = 0;
|
||||
if (a_Killer != NULL)
|
@ -1,4 +1,3 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AggressiveMonster.h"
|
||||
@ -7,13 +6,13 @@
|
||||
|
||||
|
||||
|
||||
class cCavespider :
|
||||
class cCaveSpider :
|
||||
public cAggressiveMonster
|
||||
{
|
||||
typedef cAggressiveMonster super;
|
||||
|
||||
public:
|
||||
cCavespider(void);
|
||||
cCaveSpider(void);
|
||||
|
||||
CLASS_PROTODEF(cCaveSpider);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "Bat.h"
|
||||
#include "Blaze.h"
|
||||
#include "Cavespider.h"
|
||||
#include "CaveSpider.h"
|
||||
#include "Chicken.h"
|
||||
#include "Cow.h"
|
||||
#include "Creeper.h"
|
||||
@ -10,7 +10,7 @@
|
||||
#include "Giant.h"
|
||||
#include "Horse.h"
|
||||
#include "IronGolem.h"
|
||||
#include "Magmacube.h"
|
||||
#include "MagmaCube.h"
|
||||
#include "Mooshroom.h"
|
||||
#include "Ocelot.h"
|
||||
#include "Pig.h"
|
||||
@ -26,4 +26,4 @@
|
||||
#include "Wither.h"
|
||||
#include "Wolf.h"
|
||||
#include "Zombie.h"
|
||||
#include "Zombiepigman.h"
|
||||
#include "ZombiePigman.h"
|
||||
|
@ -1,7 +1,6 @@
|
||||
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Magmacube.h"
|
||||
#include "MagmaCube.h"
|
||||
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AggressiveMonster.h"
|
@ -859,7 +859,7 @@ cMonster * cMonster::NewMonsterFromType(cMonster::eType a_MobType)
|
||||
|
||||
case mtBat: toReturn = new cBat(); break;
|
||||
case mtBlaze: toReturn = new cBlaze(); break;
|
||||
case mtCaveSpider: toReturn = new cCavespider(); break;
|
||||
case mtCaveSpider: toReturn = new cCaveSpider(); break;
|
||||
case mtChicken: toReturn = new cChicken(); break;
|
||||
case mtCow: toReturn = new cCow(); break;
|
||||
case mtCreeper: toReturn = new cCreeper(); break;
|
||||
|
@ -1,7 +1,6 @@
|
||||
|
||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||
|
||||
#include "Zombiepigman.h"
|
||||
#include "ZombiePigman.h"
|
||||
#include "../World.h"
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "PassiveAggressiveMonster.h"
|
@ -39,7 +39,7 @@
|
||||
#include "../Mobs/Creeper.h"
|
||||
#include "../Mobs/Enderman.h"
|
||||
#include "../Mobs/Horse.h"
|
||||
#include "../Mobs/Magmacube.h"
|
||||
#include "../Mobs/MagmaCube.h"
|
||||
#include "../Mobs/Sheep.h"
|
||||
#include "../Mobs/Slime.h"
|
||||
#include "../Mobs/Skeleton.h"
|
||||
|
@ -1757,7 +1757,7 @@ void cWSSAnvil::LoadBlazeFromNBT(cEntityList & a_Entities, const cParsedNBT & a_
|
||||
|
||||
void cWSSAnvil::LoadCaveSpiderFromNBT(cEntityList & a_Entities, const cParsedNBT & a_NBT, int a_TagIdx)
|
||||
{
|
||||
std::auto_ptr<cCavespider> Monster(new cCavespider());
|
||||
std::auto_ptr<cCaveSpider> Monster(new cCaveSpider());
|
||||
if (!LoadEntityBaseFromNBT(*Monster.get(), a_NBT, a_TagIdx))
|
||||
{
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user