diff --git a/source/pickups/pglasses.cpp b/source/pickups/pglasses.cpp new file mode 100644 index 000000000..09ef5ce98 --- /dev/null +++ b/source/pickups/pglasses.cpp @@ -0,0 +1,76 @@ +/*========================================================================= + + pglasses.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __GFX_SPRBANK_H__ +#include "gfx\sprbank.h" // Damnit.. include order! :( (pkg) +#endif + +#include "pickups\pglasses.h" + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +#ifndef __SPR_INGAMEFX_H__ +#include +#endif + + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ +void CSpatulaPickup::render() +{ + DVECTOR ofs; + SpriteBank *sprites; + sFrameHdr *fh; + int x,y; + + ofs=getRenderOffset(); + sprites=getSpriteBank(); + fh=sprites->getFrameHeader(FRM__SPATULA); + x=Pos.vx-ofs.vx-(fh->W/2); + y=Pos.vy-ofs.vy-(fh->H/2); + sprites->printFT4(fh,x,y,0,0,2); + + CBasePickup::render(); +} + +/*=========================================================================== +end */ diff --git a/source/pickups/pglasses.h b/source/pickups/pglasses.h new file mode 100644 index 000000000..fcc984bc4 --- /dev/null +++ b/source/pickups/pglasses.h @@ -0,0 +1,61 @@ +/*========================================================================= + + pglasses.h + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2001 Climax Development Ltd + +===========================================================================*/ + +#ifndef __PICKUPS_PGLASSES_H__ +#define __PICKUPS_PGLASSES_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#ifndef __PICKUPS_PICKUP_H__ +#include "pickups/pickup.h" +#endif + + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +class CGlassesPickup : public CBasePickup +{ +public: + virtual void render(); + + virtual void collect(class CPlayer *_player); + +private: +}; + + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __PICKUPS_PGLASSES_H__ */ + +/*=========================================================================== + end */