2001-02-20 23:53:35 +01:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
pspatula.h
|
|
|
|
|
|
|
|
Author: PKG
|
|
|
|
Created:
|
|
|
|
Project: Spongebob
|
|
|
|
Purpose:
|
|
|
|
|
|
|
|
Copyright (c) 2001 Climax Development Ltd
|
|
|
|
|
|
|
|
===========================================================================*/
|
|
|
|
|
|
|
|
#ifndef __PICKUPS_PSPATULA_H__
|
|
|
|
#define __PICKUPS_PSPATULA_H__
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Includes
|
|
|
|
-------- */
|
|
|
|
|
|
|
|
#ifndef __PICKUPS_PICKUP_H__
|
|
|
|
#include "pickups/pickup.h"
|
|
|
|
#endif
|
|
|
|
|
2001-04-19 22:46:43 +02:00
|
|
|
#ifndef __GFX_OTPOS_H__
|
|
|
|
#include "gfx\otpos.h"
|
|
|
|
#endif
|
|
|
|
|
2001-02-20 23:53:35 +01:00
|
|
|
|
|
|
|
/* Std Lib
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Tyepdefs && Defines
|
|
|
|
------------------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Structure defintions
|
|
|
|
-------------------- */
|
|
|
|
|
|
|
|
class CSpatulaPickup : public CBasePickup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void init();
|
|
|
|
|
2001-04-02 23:37:20 +02:00
|
|
|
virtual DVECTOR getSizeForPlacement();
|
2001-02-20 23:53:35 +01:00
|
|
|
virtual void collect(class CPlayer *_player);
|
|
|
|
|
2001-05-09 22:15:01 +02:00
|
|
|
void setSpatulaNumber(int _number) {m_spatulaNumber=_number;}
|
|
|
|
|
2001-02-21 23:33:17 +01:00
|
|
|
protected:
|
|
|
|
virtual void thinkPickup(int _frames);
|
|
|
|
virtual void renderPickup(DVECTOR *_pos);
|
|
|
|
|
2001-02-20 23:53:35 +01:00
|
|
|
private:
|
|
|
|
int m_glint;
|
2001-03-29 22:53:10 +02:00
|
|
|
int m_glintRot;
|
2001-05-09 22:15:01 +02:00
|
|
|
int m_spatulaNumber;
|
2001-02-20 23:53:35 +01:00
|
|
|
};
|
|
|
|
|
2001-04-19 21:18:22 +02:00
|
|
|
class CBalloonAndSpatulaPickup : public CSpatulaPickup
|
|
|
|
{
|
2001-04-20 16:08:19 +02:00
|
|
|
public:
|
|
|
|
virtual void init();
|
|
|
|
|
2001-04-19 21:18:22 +02:00
|
|
|
protected:
|
|
|
|
virtual void thinkPickup(int _frames);
|
|
|
|
virtual void renderPickup(DVECTOR *_pos);
|
2001-04-20 16:08:19 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
int m_sin;
|
2001-04-19 21:18:22 +02:00
|
|
|
};
|
|
|
|
|
2001-02-20 23:53:35 +01:00
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Globals
|
|
|
|
------- */
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------
|
|
|
|
Functions
|
|
|
|
--------- */
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#endif /* __PICKUPS_PSPATULA_H__ */
|
|
|
|
|
|
|
|
/*===========================================================================
|
|
|
|
end */
|