Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2014, 8:04:19 AM (10 years ago)
Author:
smerkli
Message:

Fixed the list problem, it was a circular include.

Location:
code/branches/towerdefenseHS14/src/modules/towerdefense
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseHS14/src/modules/towerdefense/CMakeLists.txt

    r10105 r10106  
    22  TowerDefense.cc
    33  Tower.cc
     4  TowerTurret.cc
    45  TowerDefenseCenterpoint.cc
    56  TowerDefenseHUDController.cc
  • code/branches/towerdefenseHS14/src/modules/towerdefense/Enemy.cc

    r10105 r10106  
    4646    {
    4747        if(Waypointsvector_.size()<=0){
    48                 TDCoordinate coord = {-1,-1};
     48                TDCoordinate coord = TDCoordinate(-1,-1);
    4949                return coord;
    5050        }else{
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.cc

    r10105 r10106  
    88namespace orxonox
    99{
    10     RegisterClass(TDCoordinate);
     10    //RegisterClass(TDCoordinate);
    1111
    1212    /**
     
    1616    TDCoordinate::TDCoordinate()
    1717    {
    18         RegisterObject(TDCoordinate);
     18        //RegisterObject(TDCoordinate);
    1919        x=0;
    2020        y=0;
     
    3333        int tileScale = 100;
    3434
    35         Vector3 coord = new Vector3();
    36         coord.x= (x-8) * tileScale;
    37         coord.y= (y-8) * tileScale;
    38         coord.z=0;
     35        Vector3 *coord = new Vector3();
     36        coord->x= (x-8) * tileScale;
     37        coord->y= (y-8) * tileScale;
     38        coord->z=0;
    3939
    40         return coord;
     40        return *coord;
    4141    }
    4242}
  • code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.h

    r10105 r10106  
    44#include "core/CoreIncludes.h"
    55#include "TDCoordinate.h"
    6 #include "towerdefense/TowerDefense.h"
     6//#include "towerdefense/TowerDefense.h"
    77#include "gametypes/Deathmatch.h"
    88#include "towerdefense/TowerDefensePrereqs.h"
     
    1313//Class to save the Coordinates in a class instead of struct
    1414//Convert 2d coordinates to 3d in order to set waypoints
    15 class _TowerDefenseExport TDCoordinate: public Pawn {
     15class _TowerDefenseExport TDCoordinate: public OrxonoxClass {
    1616public:
    1717                        int x;
Note: See TracChangeset for help on using the changeset viewer.