프로그래밍/툴프로젝트
-
Map.cpp프로그래밍/툴프로젝트 2013. 12. 30. 01:50
#include "stdafx.h" #include "Map.h" #include "ImgResource.h" #include #include #include #include #define CALC_XY(pt, xCoord, yCoord, width, height, criterionX, criterionY, heightCnt)\ {\ pt.x = static_cast((((xCoord + yCoord * 2) - criterionX)) / width); \ pt.y = static_cast(((criterionY - (yCoord - xCoord / 2))) / height);\ pt.y = static_cast(heightCnt / 2 - 1 - (pt.y - pt.x));\ pt.x = static_..
-
Map.h프로그래밍/툴프로젝트 2013. 12. 29. 23:00
#ifndef ProjectH_Map_H #define ProjectH_Map_H #include #include #include "Point.h" #include "tile.h" namespace ProjectH { class Map { public: // 타일을 그리기 위해 얻는 데이터를 담는 구조체 struct DrawData { int mapType; int imgIndex; int tileType; int tileFormat; int tileDrawX; int tileDrawY; int tileElevation; int startPlayer; int playerTyep; int startObjectType; bool startPoint; float indexY; std::list* ..