Code Search for Developers
 
 
  

peepmagnet.h from FreePop at Krugle


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

FreePop

FreePop is a multi-platform tile-based game based on the great old game Populous 2 by Bullfrog Productions Ltd., but much improved.

Project homepage: http://sourceforge.net/projects/freepop
Programming language(s): C++
License: other

  client/
    Makefile.am
    client.cpp
    client.h
    clientmisc.cpp
    clientmisc.h
    clientstate.cpp
    clientstate.h
    connectstate.cpp
    connectstate.h
    cropsclient.cpp
    cropsclient.h
    entityclient.cpp
    entityclient.h
    entityclientfactory.cpp
    entityclientfactory.h
    firecolumnclient.cpp
    firecolumnclient.h
    gamestate.cpp
    gamestate.h
    loadstate.cpp
    loadstate.h
    mapclient.cpp
    mapclient.h
    maptileclient.cpp
    maptileclient.h
    messagebox.cpp
    messagebox.h
    oversprite.cpp
    oversprite.h
    paintable.cpp
    paintable.h
    pausefader.cpp
    pausefader.h
    peepclient.cpp
    peepclient.h
    peepmagnetclient.cpp
    peepmagnetclient.h
    playerclient.cpp
    playerclient.h
    playeroptionsdialog.cpp
    playeroptionsdialog.h
    rockclient.cpp
    rockclient.h
    swampclient.cpp
    swampclient.h
    townclient.cpp
    townclient.h
    treeclient.cpp
    treeclient.h
    worldclient.cpp
    worldclient.h
  server/
    Makefile.am
    contagion.cpp
    contagion.h
  Makefile.am
  common.cpp
  common.h
  corner.cpp
  corner.h
  crops.cpp
  crops.h
  entity.cpp
  entity.h
  entityfactory.cpp
  entityfactory.h
  firecolumn.cpp
  firecolumn.h
  gridmap.h
  identity.cpp
  identity.h
  map.cpp
  map.h
  mappos.cpp
  mappos.h
  maptile.cpp
  maptile.h
  maptilepos.cpp
  maptilepos.h
  misc.h
  peep.cpp
  peep.h
  peepmagnet.cpp
  peepmagnet.h
  player.cpp
  player.h
  rock.cpp
  rock.h
  rotation.cpp
  rotation.h
  rules.cpp
  rules.h
  slope.cpp
  slope.h
  swamp.cpp
  swamp.h
  tempo.cpp
  tempo.h
  town.cpp
  town.h
  tree.cpp
  tree.h
  worldpos.cpp
  worldpos.h