Merge branch 'master' of https://github.com/mc-server/MCServer
This commit is contained in:
commit
1c26eb715b
@ -55,7 +55,7 @@ SightDistance=25.0
|
|||||||
MaxHealth=20
|
MaxHealth=20
|
||||||
IsFireproof=1
|
IsFireproof=1
|
||||||
|
|
||||||
[Cavespider]
|
[CaveSpider]
|
||||||
AttackRange=2.0
|
AttackRange=2.0
|
||||||
AttackRate=1
|
AttackRate=1
|
||||||
AttackDamage=2.0
|
AttackDamage=2.0
|
||||||
|
@ -143,7 +143,7 @@ protected:
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// cByteBuffer:
|
// cByteBuffer:
|
||||||
|
|
||||||
cByteBuffer::cByteBuffer(int a_BufferSize) :
|
cByteBuffer::cByteBuffer(size_t a_BufferSize) :
|
||||||
m_Buffer(new char[a_BufferSize + 1]),
|
m_Buffer(new char[a_BufferSize + 1]),
|
||||||
m_BufferSize(a_BufferSize + 1),
|
m_BufferSize(a_BufferSize + 1),
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
@ -27,7 +27,7 @@ their own synchronization.
|
|||||||
class cByteBuffer
|
class cByteBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cByteBuffer(int a_BufferSize);
|
cByteBuffer(size_t a_BufferSize);
|
||||||
~cByteBuffer();
|
~cByteBuffer();
|
||||||
|
|
||||||
/// Writes the bytes specified to the ringbuffer. Returns true if successful, false if not
|
/// Writes the bytes specified to the ringbuffer. Returns true if successful, false if not
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
|
|
||||||
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||||
|
|
||||||
#include "Cavespider.h"
|
#include "CaveSpider.h"
|
||||||
#include "../World.h"
|
#include "../World.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cCavespider::cCavespider(void) :
|
cCaveSpider::cCaveSpider(void) :
|
||||||
super("Cavespider", mtCaveSpider, "mob.spider.say", "mob.spider.death", 0.7, 0.5)
|
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);
|
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;
|
int LootingLevel = 0;
|
||||||
if (a_Killer != NULL)
|
if (a_Killer != NULL)
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "AggressiveMonster.h"
|
#include "AggressiveMonster.h"
|
||||||
@ -7,13 +6,13 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class cCavespider :
|
class cCaveSpider :
|
||||||
public cAggressiveMonster
|
public cAggressiveMonster
|
||||||
{
|
{
|
||||||
typedef cAggressiveMonster super;
|
typedef cAggressiveMonster super;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cCavespider(void);
|
cCaveSpider(void);
|
||||||
|
|
||||||
CLASS_PROTODEF(cCaveSpider);
|
CLASS_PROTODEF(cCaveSpider);
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
#include "Bat.h"
|
#include "Bat.h"
|
||||||
#include "Blaze.h"
|
#include "Blaze.h"
|
||||||
#include "Cavespider.h"
|
#include "CaveSpider.h"
|
||||||
#include "Chicken.h"
|
#include "Chicken.h"
|
||||||
#include "Cow.h"
|
#include "Cow.h"
|
||||||
#include "Creeper.h"
|
#include "Creeper.h"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
#include "Giant.h"
|
#include "Giant.h"
|
||||||
#include "Horse.h"
|
#include "Horse.h"
|
||||||
#include "IronGolem.h"
|
#include "IronGolem.h"
|
||||||
#include "Magmacube.h"
|
#include "MagmaCube.h"
|
||||||
#include "Mooshroom.h"
|
#include "Mooshroom.h"
|
||||||
#include "Ocelot.h"
|
#include "Ocelot.h"
|
||||||
#include "Pig.h"
|
#include "Pig.h"
|
||||||
@ -26,4 +26,4 @@
|
|||||||
#include "Wither.h"
|
#include "Wither.h"
|
||||||
#include "Wolf.h"
|
#include "Wolf.h"
|
||||||
#include "Zombie.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 "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
|
#pragma once
|
||||||
|
|
||||||
#include "AggressiveMonster.h"
|
#include "AggressiveMonster.h"
|
@ -859,7 +859,7 @@ cMonster * cMonster::NewMonsterFromType(cMonster::eType a_MobType)
|
|||||||
|
|
||||||
case mtBat: toReturn = new cBat(); break;
|
case mtBat: toReturn = new cBat(); break;
|
||||||
case mtBlaze: toReturn = new cBlaze(); 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 mtChicken: toReturn = new cChicken(); break;
|
||||||
case mtCow: toReturn = new cCow(); break;
|
case mtCow: toReturn = new cCow(); break;
|
||||||
case mtCreeper: toReturn = new cCreeper(); 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 "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
||||||
|
|
||||||
#include "Zombiepigman.h"
|
#include "ZombiePigman.h"
|
||||||
#include "../World.h"
|
#include "../World.h"
|
||||||
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "PassiveAggressiveMonster.h"
|
#include "PassiveAggressiveMonster.h"
|
@ -39,7 +39,7 @@
|
|||||||
#include "../Mobs/Creeper.h"
|
#include "../Mobs/Creeper.h"
|
||||||
#include "../Mobs/Enderman.h"
|
#include "../Mobs/Enderman.h"
|
||||||
#include "../Mobs/Horse.h"
|
#include "../Mobs/Horse.h"
|
||||||
#include "../Mobs/Magmacube.h"
|
#include "../Mobs/MagmaCube.h"
|
||||||
#include "../Mobs/Sheep.h"
|
#include "../Mobs/Sheep.h"
|
||||||
#include "../Mobs/Slime.h"
|
#include "../Mobs/Slime.h"
|
||||||
#include "../Mobs/Skeleton.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)
|
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))
|
if (!LoadEntityBaseFromNBT(*Monster.get(), a_NBT, a_TagIdx))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user