- Timestamp:
- Feb 1, 2015, 9:30:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.cc
r10245 r10246 24 24 TDCoordinate::TDCoordinate(int x, int y) 25 25 { 26 27 26 this->x=x; 27 this->y=y; 28 28 } 29 29 … … 31 31 Vector3 TDCoordinate::get3dcoordinate() 32 32 { 33 33 float tileScale = 100; 34 34 35 36 37 38 35 Vector3 *coord = new Vector3(); 36 coord->x= (x-8) * tileScale; 37 coord->y= (y-8) * tileScale; 38 coord->z=100; 39 39 40 40 return *coord; 41 41 } 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.