This commit is contained in:
parent
2518a438e2
commit
23d9f79f4c
11 changed files with 283 additions and 164 deletions
53
Utils/MapEdit/Map.cpp
Normal file
53
Utils/MapEdit/Map.cpp
Normal file
|
@ -0,0 +1,53 @@
|
|||
/******************/
|
||||
/*** Map Stuph ***/
|
||||
/*****************/
|
||||
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Map.h"
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
int CMap::GetWidth()
|
||||
{
|
||||
return(Map.size());
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int CMap::GetHeight()
|
||||
{
|
||||
return(Map[0].size());
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CMap::SetSize(int Width,int Height)
|
||||
{
|
||||
Map.resize(Width);
|
||||
for (int i=0;i<Width;i++)
|
||||
{
|
||||
Map[i].resize(Height);
|
||||
}
|
||||
|
||||
for (int Y=0;Y<Height;Y++)
|
||||
for (int X=0;X<Width;X++)
|
||||
{
|
||||
TRACE2("%i,%i\n",X,Y);
|
||||
Map[X][Y].Bank=0;
|
||||
Map[X][Y].Tile=(X+Y)%9;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CMap::SetWidth(int Width)
|
||||
{
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CMap::SetHeight(int Height)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue