Minor fixes
This commit is contained in:
parent
6b77dc74ad
commit
4f3377bbbf
@ -29,7 +29,7 @@ public:
|
||||
|
||||
CLASS_PROTODEF(cVillager);
|
||||
|
||||
// Override functions
|
||||
// cEntity overrides
|
||||
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
||||
virtual void Tick (float a_Dt, cChunk & a_Chunk) override;
|
||||
|
||||
|
@ -21,17 +21,16 @@ public:
|
||||
|
||||
void SetNumInvulnerableTicks(unsigned int a_Ticks) { m_InvulnerableTicks = a_Ticks; }
|
||||
|
||||
// Override functions
|
||||
// cEntity overrides
|
||||
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
|
||||
|
||||
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
||||
|
||||
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
||||
|
||||
private:
|
||||
|
||||
/** The number of ticks of invulnerability left after being initially created. Zero once invulnerability has expired. */
|
||||
unsigned int m_InvulnerableTicks;
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
|
20
src/World.h
20
src/World.h
@ -497,16 +497,16 @@ public:
|
||||
|
||||
/** Does an explosion with the specified strength at the specified coordinate
|
||||
a_SourceData exact type depends on the a_Source:
|
||||
| esOther | void * |
|
||||
| esPrimedTNT | cTNTEntity * |
|
||||
| esMonster | cMonster * |
|
||||
| esBed | cVector3i * |
|
||||
| esEnderCrystal | Vector3i * |
|
||||
| esGhastFireball | cGhastFireball * |
|
||||
| esWitherSkullBlack | TBD |
|
||||
| esWitherSkullBlue | TBD |
|
||||
| esWitherBirth | cWither * |
|
||||
| esPlugin | void * |
|
||||
| esOther | void * |
|
||||
| esPrimedTNT | cTNTEntity * |
|
||||
| esMonster | cMonster * |
|
||||
| esBed | cVector3i * |
|
||||
| esEnderCrystal | Vector3i * |
|
||||
| esGhastFireball | cGhastFireball * |
|
||||
| esWitherSkullBlack | TBD |
|
||||
| esWitherSkullBlue | TBD |
|
||||
| esWitherBirth | cMonster * |
|
||||
| esPlugin | void * |
|
||||
*/
|
||||
virtual void DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_BlockY, double a_BlockZ, bool a_CanCauseFire, eExplosionSource a_Source, void * a_SourceData); // tolua_export // override, cannot specify due to tolua
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user