Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Add files.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertTheSable committed May 24, 2021
0 parents commit 17682e7
Show file tree
Hide file tree
Showing 18 changed files with 1,839 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
@@ -0,0 +1,12 @@
*.pro.user
*.o
*.exe
*.tmx
*.bmp
*.png
*.jpg
*.jpeg
*.sfc
*.smc
*.bin

3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "base64"]
path = base64
url = https://github.com/ReneNyffenegger/cpp-base64
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Readme.md
@@ -0,0 +1,5 @@
# Thracia Map Converter

This is a tool to convert Tiled maps into an FE5 map format.

The output files need to be compressed before they can be inserted.
66 changes: 66 additions & 0 deletions TMXReader/mapchange.cpp
@@ -0,0 +1,66 @@
/*
* Thracia 776 Map Converter
*
* Copyright (C) 2015 Robert the Sable
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* <Description> For those of you not familiar with the GNU GPL system,
* the license is in the file named "COPYING".
*/

#include "mapchange.h"

#include <cstdlib>

MapChange::MapChange(int x, int y, int xSize, int ySize, int ID, bool bitSet, int *tiledData)
{
m_iXSize = xSize;
m_iYSize = ySize;
m_iID = ID;
m_iXPos = x;
m_iYPos = y;
m_bBitSet = bitSet;
m_iData = tiledData;
}
void MapChange::getData(int **changeData)
{
*changeData= m_iData;
}
bool MapChange::bitSet()
{
return m_bBitSet;
}

int MapChange::getID()
{
return m_iID;
}
int MapChange::getXPos()
{
return m_iXPos;
}

int MapChange::getYPos()
{
return m_iYPos;
}
int MapChange::getXSize()
{
return m_iXSize;
}
int MapChange::getYSize()
{
return m_iYSize;
}
47 changes: 47 additions & 0 deletions TMXReader/mapchange.h
@@ -0,0 +1,47 @@
/*
* Thracia 776 Map Converter
*
* Copyright (C) 2015 Robert the Sable
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3
* as published by the Free Software Foundation
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* <Description> For those of you not familiar with the GNU GPL system,
* the license is in the file named "COPYING".
*/

#ifndef MAPCHANGE_H
#define MAPCHANGE_H

class MapChange
{
public:
MapChange(int x, int y, int xSize, int ySize, int ID, bool bitSet, int *tiledData);
void getData(int**);
bool bitSet();
int getID();
int getXPos();
int getYPos();
int getXSize();
int getYSize();
private:
int m_iID;
int m_iXPos;
int m_iYPos;
int m_iXSize;
int m_iYSize;
bool m_bBitSet;
int *m_iData;
};

#endif // MAPCHANGE_H

0 comments on commit 17682e7

Please sign in to comment.