Show peepmagnet.h syntax highlighted
/***************************************************************************
papalmagnet.h - description
-------------------
begin : Fri Jan 31 2003
copyright : (C) 2003 by Brendon Higgins
email : freepop-devel@lists.sourceforge.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PEEPMAGNET_H_INCLUDED
#define PEEPMAGNET_H_INCLUDED
/**
* A peep magnet.
*/
namespace PeepMagnet {
/**
* There are no special messages for a peep magnet (yet).
*/
}
#endif /* ndef PEEPMAGNET_H_INCLUDED */
// #ifndef PAPALMAGNET_H_INCLUDED
// #define PAPALMAGNET_H_INCLUDED
//
// #include <entity.h>
//
// #ifndef NO_DISPLAY
// #include <common.h>
// #include <display.h>
// #include <resources/resources.h>
// #endif
//
// /**
// * \short Your peeps head for this (or the leader who heads for this).
// *
// * Every player should have one of these. You cannot destroy them.
// * With the correct PeepGoal setting leaders head for
// * PapalMagnets, while regular Peeps head for leaders. If a leader
// * dies the magnet automatically respawns to his grave site.
// * You can only move the magnet if you have a leader. A leader
// * is determined by the first Peep to arrive at the PapalMagnet
// * (assuming you don't already *have* a leader).
// */
// class PapalMagnet: public Entity {
// private:
// Player* owner;
//
// public:
// /**
// * Constructor.
// */
// PapalMagnet(const WorldPos& p, Player* o)
// : Entity(p), owner(o) {
// }
//
// /**
// * Desrtuctor.
// */
// virtual ~PapalMagnet() {
// }
//
// virtual GlFixed getFlammability() const {
// return 0;
// }
//
// virtual bool isFlammable() const {
// return false;
// }
//
// virtual bool isKillable() const {
// return false;
// }
//
// virtual bool update(World* world, int elapsed) {
// return true;
// }
//
// virtual bool isLandBound() const {
// return false;
// }
//
// virtual bool isOnFire() const {
// return false;
// }
//
// virtual CheapXMLTag getXMLDescLocal() const {
// CheapXMLTag el("PapalMagnet");
// CheapXMLTag o("Owner");
// o.addChildBack(owner->getID().getXMLDesc());
// el.addChildBack(o);
// return el;
// }
//
// #ifndef NO_DISPLAY
// protected:
// virtual U32 spriteAction() const {
// return (Display::get().getRotation().getRotNumber() % 2 == 0) ? DIR1 : DIR2;
// }
//
// virtual KrSpriteResource* spriteResource() const {
// KrSpriteResource* res;
// TEST(res = Display::get().getEngine().Vault()->GetSpriteResource(PAPAL_MAGNET1));
// return res;
// }
// #endif /* ndef NO_DISPLAY */
// };
//
// #endif /* ndef PAPAL_H_INCLUDED */
//
See more files for this project here