This commit is contained in:
parent
5f86af045b
commit
84cc92f6e4
7 changed files with 89 additions and 22 deletions
|
@ -29,6 +29,10 @@
|
|||
#include "utils\mathtab.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAMESLOT_H__
|
||||
#include "game\gameslot.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
@ -101,6 +105,7 @@ DVECTOR CSpatulaPickup::getSizeForPlacement()
|
|||
void CSpatulaPickup::collect(class CPlayer *_player)
|
||||
{
|
||||
CBasePickup::collect(_player);
|
||||
CGameSlotManager::getSlotData()->collectSpatula(0,0,m_spatulaNumber);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
|
|
@ -46,6 +46,8 @@ public:
|
|||
virtual DVECTOR getSizeForPlacement();
|
||||
virtual void collect(class CPlayer *_player);
|
||||
|
||||
void setSpatulaNumber(int _number) {m_spatulaNumber=_number;}
|
||||
|
||||
protected:
|
||||
virtual void thinkPickup(int _frames);
|
||||
virtual void renderPickup(DVECTOR *_pos);
|
||||
|
@ -53,6 +55,7 @@ protected:
|
|||
private:
|
||||
int m_glint;
|
||||
int m_glintRot;
|
||||
int m_spatulaNumber;
|
||||
};
|
||||
|
||||
class CBalloonAndSpatulaPickup : public CSpatulaPickup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue