Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2005, 1:10:45 AM (18 years ago)
Author:
patrick
Message:

network: branche comiles again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/spawning_point.cc

    r6088 r6093  
    1717#include "spawning_point.h"
    1818#include "load_param.h"
    19 
     19#include "factory.h"
     20#include "compiler.h"
     21#include "world.h" /* only temp. until the object manager is implemented*/
    2022
    2123/**
    2224 *  standard constructor
    2325 */
    24 SpawningPoint::SpawningPoint (const Vector& absCoordinate, const World* world)
    25     : WorldEntity(absCoodrinate)
     26SpawningPoint::SpawningPoint (World* world, const Vector& absCoordinate)
    2627{
    2728  this->world = world;
     
    3738 */
    3839SpawningPoint::SpawningPoint (const Vector& position, float frequency,
    39                               float seed, int classID, const World* world)
    40     : WorldEntity(position)
     40                              float seed, ClassID classID, World* world)
    4141{
    4242  this->frequency = frequency;
     
    8383
    8484  /* now load the seed */
    85   LoadParam(root, "classid", this, SpawningPoint, setSpawningEntity)
     85/*  LoadParam(root, "classid", this, SpawningPoint, setSpawningEntity)
    8686      .describe("sets the class id of the entity to spawn")
    87       .defaultValues(1, CL_WORLD_ENTITY);
     87      .defaultValues(1, CL_WORLD_ENTITY);*/
    8888}
    8989
     
    9797            this->frequency, this->seed);
    9898  BaseObject* spawningEntity = Factory::fabricate(this->classID);
    99   if( LIKELY(this->world != NULL))
     99  if( likely(this->world != NULL))
    100100    this->world->spawn(dynamic_cast<WorldEntity*>(spawningEntity));
    101101}
Note: See TracChangeset for help on using the changeset viewer.