Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2012, 1:22:20 PM (13 years ago)
Author:
jo
Message:

Some hints added on how to proceed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/newlevel2012/src/modules/towerdefense/TowerDefenseCenterpoint.cc

    r9141 r9143  
    6969        XMLPortParam(TowerDefenseCenterpoint, "height", setHeight, setWidth, xmlelement, mode);
    7070        XMLPortParam(TowerDefenseCenterpoint, "towerTemplate", setTowerTemplate, getTowerTemplate, xmlelement, mode);
     71        //TODO: add XMLPortObject(TowerDefenseCenterpoint, WorldEntity, "waypoints", addWaypoint, getWaypoint,  xmlelement, mode);
     72        // This was copied and shightly modified from WaypointController.cc ; there are no getters and setters and no membervariable yet
     73        // The centerpoint should have all waypoints for "attached" to it. By using this function you can seperately add waypoints
     74        // When you spawn a new enemy you should let it be controlled by a WaypointController. And that controller should get the waypoints.
     75
     76        // Alternatively you can manage the waypoints directly in TowerDefense.cc
    7177    }
    7278
Note: See TracChangeset for help on using the changeset viewer.