Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2012, 2:51:44 PM (13 years ago)
Author:
mentzerf
Message:
  • Fixed size of oxw stuff.

+ Added tileScale to TowerDefenseCenterpoint to store the scale of the oxw

  • Removed WaypointController debug prints
File:
1 edited

Legend:

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

    r9141 r9154  
    6969                        unsigned int getHeight(void) const
    7070                { return this->height_; }
     71                       
     72                        /**
     73                        @brief How to convert to world coordinates, e.g. that 0,15 is not at -8,-8 but at -80,-80 (if scale would be 10)
     74                        */
     75                        void setTileScale(unsigned int tileScale)
     76                                { this->tileScale_ = tileScale; }
     77                       
     78                        unsigned int getTileScale(void) const
     79                                { return this->tileScale_; }
    7180               
    7281            /**
     
    8594            unsigned int width_;
    8695            unsigned int height_;
     96                        unsigned int tileScale_;
     97                       
    8798            std::string towerTemplate_;
    8899    };
Note: See TracChangeset for help on using the changeset viewer.