Revision: 748a156b9732
Branch: default
Author: Kevin Wells <
DarkOp...@gmail.com>
Date: Mon Nov 26 03:38:05 2012
Log: Added level export command and updated some library stuff.
http://code.google.com/p/escape-from-the-masters-lair/source/detail?r=748a156b9732
Added:
/png.dll
/savepng.c
/savepng.h
/string_stuff.cpp
/string_stuff.h
/zlib.dll
Modified:
/Escape from the Master's Lair.cbp
/Escape from the Master's Lair.layout
/Escape from the Master's Lair.layout.save
/level_size.h
/player_windows.cpp
/string_input.cpp
/string_input.h
/templates.cpp
/version.h
/world.cpp
/world.h
=======================================
--- /dev/null
+++ /png.dll Mon Nov 26 03:38:05 2012
Binary file, no diff available.
=======================================
--- /dev/null
+++ /savepng.c Mon Nov 26 03:38:05 2012
@@ -0,0 +1,284 @@
+/*
+ Based on zlib license - see
http://www.gzip.org/zlib/zlib_license.html
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not
be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source
distribution.
+
+ "Philip D. Bober" <
wildfi...@mchsi.com>
+*/
+
+//Slightly modified by Kevin Wells <
DarkOp...@gmail.com>
+
+/**
+ * 4/17/04 - IMG_SavePNG & IMG_SavePNG_RW - Philip D. Bober
+ * 11/08/2004 - Compr fix, levels -1,1-7 now work - Tyler Montbriand
+ */
+#include <stdlib.h>
+#include <SDL.h>
+#include <SDL_byteorder.h>
+#include <zlib.h>
+#include <png.h>
+#include "savepng.h"
+
+int IMG_SavePNG(const char *file, SDL_Surface *surf,int compression){
+ SDL_RWops *fp;
+ int ret;
+
+ fp=SDL_RWFromFile(file,"wb");
+
+ if( fp == NULL ) {
+ return (-1);
+ }
+
+ ret=IMG_SavePNG_RW(fp,surf,compression);
+ SDL_RWclose(fp);
+ return ret;
+}
+
+static void png_write_data(png_structp png_ptr,png_bytep data, png_size_t
length){
+ SDL_RWops *rp = (SDL_RWops*) png_get_io_ptr(png_ptr);
+ SDL_RWwrite(rp,data,1,length);
+}
+
+int IMG_SavePNG_RW(SDL_RWops *src, SDL_Surface *surf,int compression){
+ png_structp png_ptr;
+ png_infop info_ptr;
+ SDL_PixelFormat *fmt=NULL;
+ SDL_Surface *tempsurf=NULL;
+ int ret,funky_format,used_alpha;
+ unsigned int i,temp_alpha;
+ png_colorp palette;
+ Uint8 *palette_alpha=NULL;
+ png_byte **row_pointers=NULL;
+ png_ptr=NULL;info_ptr=NULL;palette=NULL;ret=-1;
+ funky_format=0;
+
+ if( !src || !surf) {
+ goto savedone; /* Nothing to do. */
+ }
+
+ row_pointers=(png_byte **)malloc(surf->h * sizeof(png_byte*));
+ if (!row_pointers) {
+ SDL_SetError("Couldn't allocate memory for rowpointers");
+ goto savedone;
+ }
+
+ png_ptr=png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL,NULL,NULL);
+ if (!png_ptr){
+ SDL_SetError("Couldn't allocate memory for PNG file");
+ goto savedone;
+ }
+ info_ptr= png_create_info_struct(png_ptr);
+ if (!info_ptr){
+ SDL_SetError("Couldn't allocate image information for PNG file");
+ goto savedone;
+ }
+ /* setup custom writer functions */
+ png_set_write_fn(png_ptr,(png_voidp)src,png_write_data,NULL);
+
+ if (setjmp(png_jmpbuf(png_ptr))){
+ SDL_SetError("Unknown error writing PNG");
+ goto savedone;
+ }
+
+ if(compression>Z_BEST_COMPRESSION)
+ compression=Z_BEST_COMPRESSION;
+
+ if(compression == Z_NO_COMPRESSION) // No compression
+ {
+ png_set_filter(png_ptr,0,PNG_FILTER_NONE);
+ png_set_compression_level(png_ptr,Z_NO_COMPRESSION);
+ }
+ else if(compression<0) // Default compression
+ png_set_compression_level(png_ptr,Z_DEFAULT_COMPRESSION);
+ else
+ png_set_compression_level(png_ptr,compression);
+
+ fmt=surf->format;
+ if(fmt->BitsPerPixel==8){ /* Paletted */
+ png_set_IHDR(png_ptr,info_ptr,
+ surf->w,surf->h,8,PNG_COLOR_TYPE_PALETTE,
+ PNG_INTERLACE_NONE,PNG_COMPRESSION_TYPE_DEFAULT,
+ PNG_FILTER_TYPE_DEFAULT);
+ palette=(png_colorp) malloc(fmt->palette->ncolors * sizeof(png_color));
+ if (!palette) {
+ SDL_SetError("Couldn't create memory for palette");
+ goto savedone;
+ }
+ for (i=0;i<fmt->palette->ncolors;i++) {
+ palette[i].red=fmt->palette->colors[i].r;
+ palette[i].green=fmt->palette->colors[i].g;
+ palette[i].blue=fmt->palette->colors[i].b;
+ }
+ png_set_PLTE(png_ptr,info_ptr,palette,fmt->palette->ncolors);
+ if (surf->flags&SDL_SRCCOLORKEY) {
+ palette_alpha=(Uint8 *)malloc((fmt->colorkey+1)*sizeof(Uint8));
+ if (!palette_alpha) {
+ SDL_SetError("Couldn't create memory for palette transparency");
+ goto savedone;
+ }
+ /* FIXME: memset? */
+ for (i=0;i<(fmt->colorkey+1);i++) {
+ palette_alpha[i]=255;
+ }
+ palette_alpha[fmt->colorkey]=0;
+ png_set_tRNS(png_ptr,info_ptr,palette_alpha,fmt->colorkey+1,NULL);
+ }
+ }else{ /* Truecolor */
+ if (fmt->Amask) {
+ png_set_IHDR(png_ptr,info_ptr,
+ surf->w,surf->h,8,PNG_COLOR_TYPE_RGB_ALPHA,
+ PNG_INTERLACE_NONE,PNG_COMPRESSION_TYPE_DEFAULT,
+ PNG_FILTER_TYPE_DEFAULT);
+ } else {
+ png_set_IHDR(png_ptr,info_ptr,
+ surf->w,surf->h,8,PNG_COLOR_TYPE_RGB,
+ PNG_INTERLACE_NONE,PNG_COMPRESSION_TYPE_DEFAULT,
+ PNG_FILTER_TYPE_DEFAULT);
+ }
+ }
+ png_write_info(png_ptr, info_ptr);
+
+ if (fmt->BitsPerPixel==8) { /* Paletted */
+ for(i=0;i<surf->h;i++){
+ row_pointers[i]= ((png_byte*)surf->pixels) + i*surf->pitch;
+ }
+ if(SDL_MUSTLOCK(surf)){
+ SDL_LockSurface(surf);
+ }
+ png_write_image(png_ptr, row_pointers);
+ if(SDL_MUSTLOCK(surf)){
+ SDL_UnlockSurface(surf);
+ }
+ }else{ /* Truecolor */
+ if(fmt->BytesPerPixel==3){
+ if(fmt->Amask){ /* check for 24 bit with alpha */
+ funky_format=1;
+ }else{
+ /* Check for RGB/BGR/GBR/RBG/etc surfaces.*/
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ if(fmt->Rmask!=0xFF0000
+ || fmt->Gmask!=0x00FF00
+ || fmt->Bmask!=0x0000FF){
+#else
+ if(fmt->Rmask!=0x0000FF
+ || fmt->Gmask!=0x00FF00
+ || fmt->Bmask!=0xFF0000){
+#endif
+ funky_format=1;
+ }
+ }
+ }else if (fmt->BytesPerPixel==4){
+ if (!fmt->Amask) { /* check for 32bit but no alpha */
+ funky_format=1;
+ }else{
+ /* Check for ARGB/ABGR/GBAR/RABG/etc surfaces.*/
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ if(fmt->Rmask!=0xFF000000
+ || fmt->Gmask!=0x00FF0000
+ || fmt->Bmask!=0x0000FF00
+ || fmt->Amask!=0x000000FF){
+#else
+ if(fmt->Rmask!=0x000000FF
+ || fmt->Gmask!=0x0000FF00
+ || fmt->Bmask!=0x00FF0000
+ || fmt->Amask!=0xFF000000){
+#endif
+ funky_format=1;
+ }
+ }
+ }else{ /* 555 or 565 16 bit color */
+ funky_format=1;
+ }
+ if (funky_format) {
+ /* Allocate non-funky format, and copy pixeldata in*/
+ if(fmt->Amask){
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ tempsurf = SDL_CreateRGBSurface(SDL_SWSURFACE, surf->w, surf->h, 24,
+ 0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff);
+#else
+ tempsurf = SDL_CreateRGBSurface(SDL_SWSURFACE, surf->w, surf->h, 24,
+ 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000);
+#endif
+ }else{
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ tempsurf = SDL_CreateRGBSurface(SDL_SWSURFACE, surf->w, surf->h, 24,
+ 0xff0000, 0x00ff00, 0x0000ff, 0x00000000);
+#else
+ tempsurf = SDL_CreateRGBSurface(SDL_SWSURFACE, surf->w, surf->h, 24,
+ 0x000000ff, 0x0000ff00, 0x00ff0000, 0x00000000);
+#endif
+ }
+ if(!tempsurf){
+ SDL_SetError("Couldn't allocate temp surface");
+ goto savedone;
+ }
+ if(surf->flags&SDL_SRCALPHA){
+ temp_alpha=fmt->alpha;
+ used_alpha=1;
+ SDL_SetAlpha(surf,0,255); /* Set for an opaque blit */
+ }else{
+ used_alpha=0;
+ }
+ if(SDL_BlitSurface(surf,NULL,tempsurf,NULL)!=0){
+ SDL_SetError("Couldn't blit surface to temp surface");
+ SDL_FreeSurface(tempsurf);
+ goto savedone;
+ }
+ if (used_alpha) {
+ SDL_SetAlpha(surf,SDL_SRCALPHA,(Uint8)temp_alpha); /* Restore alpha
settings*/
+ }
+ for(i=0;i<tempsurf->h;i++){
+ row_pointers[i]= ((png_byte*)tempsurf->pixels) + i*tempsurf->pitch;
+ }
+ if(SDL_MUSTLOCK(tempsurf)){
+ SDL_LockSurface(tempsurf);
+ }
+ png_write_image(png_ptr, row_pointers);
+ if(SDL_MUSTLOCK(tempsurf)){
+ SDL_UnlockSurface(tempsurf);
+ }
+ SDL_FreeSurface(tempsurf);
+ } else {
+ for(i=0;i<surf->h;i++){
+ row_pointers[i]= ((png_byte*)surf->pixels) + i*surf->pitch;
+ }
+ if(SDL_MUSTLOCK(surf)){
+ SDL_LockSurface(surf);
+ }
+ png_write_image(png_ptr, row_pointers);
+ if(SDL_MUSTLOCK(surf)){
+ SDL_UnlockSurface(surf);
+ }
+ }
+ }
+
+ png_write_end(png_ptr, NULL);
+ ret=0; /* got here, so nothing went wrong. YAY! */
+
+savedone: /* clean up and return */
+ png_destroy_write_struct(&png_ptr,&info_ptr);
+ if (palette) {
+ free(palette);
+ }
+ if (palette_alpha) {
+ free(palette_alpha);
+ }
+ if (row_pointers) {
+ free(row_pointers);
+ }
+ return ret;
+}
=======================================
--- /dev/null
+++ /savepng.h Mon Nov 26 03:38:05 2012
@@ -0,0 +1,56 @@
+/*
+ Based on zlib license - see
http://www.gzip.org/zlib/zlib_license.html
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not
be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source
distribution.
+
+ "Philip D. Bober" <
wildfi...@mchsi.com>
+ */
+
+//Slightly modified by Kevin Wells <
DarkOp...@gmail.com>
+
+#ifndef savepng_h
+#define savepng_h
+
+/* #include <SDL/begin_code.h> */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define IMG_COMPRESS_OFF 0
+#define IMG_COMPRESS_MAX 9
+#define IMG_COMPRESS_DEFAULT -1
+
+/**
+ * Takes a filename, a surface to save, and a compression level. The
+ * compression level can be 0(min) through 9(max), or -1(default).
+ */
+DECLSPEC int SDLCALL IMG_SavePNG(const char *file,
+ SDL_Surface *surf,
+ int compression);
+/**
+ * Takes a SDL_RWops pointer, a surface to save, and a compression level.
+ * compression can be 0(min) through 9(max), or -1(default).
+ */
+DECLSPEC int SDLCALL IMG_SavePNG_RW(SDL_RWops *src,
+ SDL_Surface *surf,
+ int compression);
+#ifdef __cplusplus
+}
+#endif
+
+#endif
=======================================
--- /dev/null
+++ /string_stuff.cpp Mon Nov 26 03:38:05 2012
@@ -0,0 +1,62 @@
+#include "string_stuff.h"
+
+#include <vector>
+
+#include <boost/algorithm/string.hpp>
+
+using namespace std;
+using namespace boost::algorithm;
+
+string String_Stuff::make_string_lower_case(string str_input){
+ to_lower(str_input);
+
+ return str_input;
+}
+
+string String_Stuff::process_newlines(string str_input){
+ string newline="\\";
+ newline+="n";
+
+ replace_all(str_input,newline,"\xA");
+
+ return str_input;
+}
+
+int String_Stuff::newline_count(string str_input){
+ int newlines=0;
+ string newline="\xA";
+
+ for(int i=0;i<str_input.length();i++){
+ if(str_input[i]==newline[0]){
+ newlines++;
+ }
+ }
+
+ return newlines;
+}
+
+int String_Stuff::length_of_last_line(std::string str_input){
+ vector<string> lines;
+ split(lines,str_input,is_any_of("\xA"));
+
+ return lines[lines.size()-1].length();
+}
+
+std::string String_Stuff::erase_first_line(std::string str_input){
+ string newline="\xA";
+
+ for(int i=0;i<str_input.length();i++){
+ if(str_input[i]==newline[0]){
+ str_input.erase(0,1);
+
+ break;
+ }
+ else{
+ str_input.erase(0,1);
+
+ i--;
+ }
+ }
+
+ return str_input;
+}
=======================================
--- /dev/null
+++ /string_stuff.h Mon Nov 26 03:38:05 2012
@@ -0,0 +1,36 @@
+#ifndef string_stuff_h
+#define string_stuff_h
+
+#include <string>
+#include <sstream>
+
+class String_Stuff{
+public:
+
+ //Returns a string with all uppercase letters converted to lowercase.
+ std::string make_string_lower_case(std::string str_input);
+
+ template<class Number_Type>
+ inline std::string num_to_string(Number_Type number){
+ std::string message="";
+
+ std::stringstream strstream("");
+
strstream.clear();strstream.str("");strstream<<number;message=strstream.str();
+
+ return message;
+ }
+
+ //Process newlines (\n) in a string that has been read from disk.
+ std::string process_newlines(std::string str_input);
+
+ //Returns the number of newlines in the passed string.
+ int newline_count(std::string str_input);
+
+ //Returns the length of the last line in a string.
+ //Simply returns the length of the string if it has only one line.
+ int length_of_last_line(std::string str_input);
+
+ std::string erase_first_line(std::string str_input);
+};
+
+#endif
=======================================
--- /dev/null
+++ /zlib.dll Mon Nov 26 03:38:05 2012
Binary file, no diff available.
=======================================
--- /Escape from the Master's Lair.cbp Sat Aug 4 00:19:04 2012
+++ /Escape from the Master's Lair.cbp Mon Nov 26 03:38:05 2012
@@ -8,22 +8,24 @@
<Build>
<Target title="Release-Windows">
<Option platforms="Windows;" />
- <Option output="bin\Release-Windows\Escape.exe" prefix_auto="1"
extension_auto="0" />
+ <Option output="bin/Release-Windows/Escape.exe" prefix_auto="1"
extension_auto="0" />
<Option working_dir="" />
- <Option object_output="obj\Release-Windows\" />
+ <Option object_output="obj/Release-Windows/" />
<Option type="5" />
<Option compiler="gcc" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-O2" />
<Add option="-w" />
- <Add directory="..\..\MinGW\include" />
- <Add directory="..\..\SDL\include\SDL" />
- <Add directory="..\..\SDL\SDL_image\include" />
- <Add directory="..\..\SDL\SDL_gfx\include" />
- <Add directory="..\..\SDL\SDL_mixer\include" />
- <Add directory="..\..\glew\include\GL" />
- <Add directory="..\..\Boost" />
+ <Add directory="../../MinGW/include" />
+ <Add directory="../../SDL/include/SDL" />
+ <Add directory="../../SDL/SDL_image/include" />
+ <Add directory="../../SDL/SDL_gfx/include" />
+ <Add directory="../../SDL/SDL_mixer/include" />
+ <Add directory="../../glew/include/GL" />
+ <Add directory="../../Boost" />
+ <Add directory="../../zlib/include" />
+ <Add directory="../../libpng/include" />
</Compiler>
<Linker>
<Add option="-s" />
@@ -40,13 +42,15 @@
<Add library="..\..\SDL\SDL_image\lib\SDL_image.lib" />
<Add library="..\..\SDL\SDL_gfx\lib\libSDL_gfx.a" />
<Add library="..\..\SDL\SDL_mixer\lib\SDL_mixer.lib" />
- <Add library="..\..\Boost\stage\lib\libboost_system-mgw45-mt-1_49.a"
/>
- <Add
library="..\..\Boost\stage\lib\libboost_filesystem-mgw45-mt-1_49.a" />
- <Add
library="..\..\Boost\stage\lib\libboost_iostreams-mgw45-mt-1_49.a" />
- <Add library="..\..\Boost\stage\lib\libboost_bzip2-mgw45-mt-1_49.a" />
- <Add directory="..\..\SDL\lib" />
- <Add directory="..\..\glew\lib" />
- <Add directory="..\..\Boost\stage\lib" />
+ <Add library="..\..\boost\stage\lib\libboost_system-mgw45-mt-1_51.a"
/>
+ <Add
library="..\..\boost\stage\lib\libboost_filesystem-mgw45-mt-1_51.a" />
+ <Add
library="..\..\boost\stage\lib\libboost_iostreams-mgw45-mt-1_51.a" />
+ <Add library="..\..\boost\stage\lib\libboost_bzip2-mgw45-mt-1_51.a" />
+ <Add library="..\..\libpng\lib\libpng.a" />
+ <Add directory="../../SDL/lib" />
+ <Add directory="../../glew/lib" />
+ <Add directory="../../Boost/stage/lib" />
+ <Add directory="../../libpng/lib" />
</Linker>
</Target>
<Target title="Release-Linux">
@@ -59,10 +63,10 @@
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
<Add option="-w" />
- <Add directory="\usr\include\SDL\" />
- <Add directory="\usr\include\" />
- <Add directory="\usr\include\GL\" />
- <Add directory="..\..\boost" />
+ <Add directory="/usr/include/SDL/" />
+ <Add directory="/usr/include/" />
+ <Add directory="/usr/include/GL/" />
+ <Add directory="../../boost" />
</Compiler>
<Linker>
<Add option="-s" />
@@ -79,8 +83,8 @@
<Add library="..\..\boost\stage\lib\libboost_system.so" />
<Add library="..\..\boost\stage\lib\libboost_filesystem.so" />
<Add library="..\..\boost\stage\lib\libboost_iostreams.so" />
- <Add directory="\usr\lib64\" />
- <Add directory="..\..\boost\stage\lib" />
+ <Add directory="/usr/lib64/" />
+ <Add directory="../../boost/stage/lib" />
</Linker>
</Target>
</Build>
@@ -185,9 +189,15 @@
<Unit filename="render.h" />
<Unit filename="save_load.cpp" />
<Unit filename="save_load.h" />
+ <Unit filename="savepng.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="savepng.h" />
<Unit filename="starting_values.h" />
<Unit filename="string_input.cpp" />
<Unit filename="string_input.h" />
+ <Unit filename="string_stuff.cpp" />
+ <Unit filename="string_stuff.h" />
<Unit filename="templates.cpp" />
<Unit filename="templates.h" />
<Unit filename="templates_strings.cpp" />
=======================================
--- /Escape from the Master's Lair.layout Sat Aug 4 00:19:04 2012
+++ /Escape from the Master's Lair.layout Mon Nov 26 03:38:05 2012
@@ -1,322 +1,336 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Release-Windows" />
- <File name="creature.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="15124" topLine="435" />
+ <File name="item_combat.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="item_template.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="261" topLine="0" />
+ <File name="creature_combat.cpp" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_skills.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2651" topLine="116" />
+ <File name="tooltip.h" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="material_properties.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="476" topLine="3" />
- </File>
- <File name="race.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="833" topLine="15" />
- </File>
- <File name="creature_save_load.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1018" topLine="18" />
+ <File name="player_windows.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="3711" topLine="104" />
+ </Cursor>
</File>
<File name="item_save_load.cpp" open="0" top="0" tabpos="14" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3653" topLine="162" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="font.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1745" topLine="48" />
+ <File name="creature_commands.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="material_properties.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="933" topLine="6" />
+ <File name="update.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="race.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="387" topLine="1" />
+ <File name="creature_equipment.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="enumerations.h" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1713" topLine="95" />
+ <File name="update.h" open="0" top="0" tabpos="11" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="item_combat.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="6965" topLine="94" />
+ <File name="creature_experience.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="ai_keys.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="573" topLine="3" />
+ <File name="race.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="main.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="198" topLine="0" />
- </File>
- <File name="quit.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="ai.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="347" topLine="0" />
- </File>
- <File name="timer.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="item.h" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1224" topLine="152" />
- </File>
- <File name="covering_conversions.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="325" topLine="0" />
- </File>
- <File name="main.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="6860" topLine="164" />
- </File>
- <File name="covering_conversions.cpp" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="261" topLine="20" />
- </File>
- <File name="quit.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="963" topLine="21" />
- </File>
- <File name="timer.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="998" topLine="26" />
- </File>
- <File name="item.cpp" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="11165" topLine="405" />
+ <File name="level.cpp" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="533" topLine="0" />
+ </Cursor>
</File>
<File name="creature_other_stats.cpp" open="0" top="0" tabpos="4"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="199" topLine="6" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_experience.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="10774" topLine="295" />
+ <File name="world.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="452" topLine="6" />
+ </Cursor>
</File>
- <File name="player_windows.cpp" open="1" top="1" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="68809" topLine="1667" />
+ <File name="race.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tile_size.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="231" topLine="0" />
+ <File name="random_chance.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="inventory_data.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="170" topLine="0" />
+ <File name="level.h" open="1" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="433" topLine="15" />
+ </Cursor>
</File>
- <File name="effect.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="world.h" open="0" top="0" tabpos="10" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="821" topLine="18" />
+ </Cursor>
</File>
- <File name="player_start.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="4445" topLine="194" />
+ <File name="random_chance.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tile.h" open="0" top="0" tabpos="9" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="469" topLine="0" />
+ <File name="level_size.h" open="1" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="408" topLine="0" />
+ </Cursor>
</File>
- <File name="image_data.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="render.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="age_limits.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="266" topLine="0" />
+ <File name="main.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="player_scores.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3783" topLine="12" />
+ <File name="dungeon_generation.cpp" open="1" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="14129" topLine="94" />
+ </Cursor>
+ <Folding>
+ <Collapse line="12" />
+ <Collapse line="31" />
+ <Collapse line="74" />
+ </Folding>
</File>
- <File name="tile.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3899" topLine="96" />
+ <File name="render.h" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="1312" topLine="16" />
+ </Cursor>
</File>
- <File name="image.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="17" topLine="0" />
+ <File name="save_load.cpp" open="0" top="0" tabpos="9" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="covering.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="544" topLine="0" />
+ <File name="material_properties.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="player.h" open="0" top="0" tabpos="7" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3347" topLine="106" />
+ <File name="save_load.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="templates_strings.cpp" open="0" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3201" topLine="117" />
+ <File name="max_objects.h" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="image.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="308" topLine="0" />
+ <File name="enumerations.h" open="1" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="2867" topLine="60" />
+ </Cursor>
+ <Folding>
+ <Collapse line="12" />
+ </Folding>
</File>
- <File name="creature_equipment.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="7224" topLine="178" />
+ <File name="ai.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="player.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="29723" topLine="651" />
+ <File name="font.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="templates.h" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2465" topLine="70" />
+ <File name="string_input.cpp" open="1" top="1" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="16811" topLine="394" />
+ </Cursor>
+ <Folding>
+ <Collapse line="15" />
+ <Collapse line="72" />
+ </Folding>
</File>
- <File name="highscore.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="193" topLine="0" />
- </File>
- <File name="effect.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="pixels.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="templates.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="373" topLine="0" />
- </File>
- <File name="highscore.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="225" topLine="0" />
- </File>
- <File name="MersenneTwister.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="14358" topLine="427" />
+ <File name="font.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="pixels.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="collision.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
<File name="string_input.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="242" topLine="0" />
- </File>
- <File name="grammar.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="347" topLine="0" />
- </File>
- <File name="covering.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="788" topLine="20" />
- </File>
- <File name="object.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1831" topLine="30" />
- </File>
- <File name="string_input.cpp" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="11454" topLine="280" />
- </File>
- <File name="grammar.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="798" topLine="18" />
- </File>
- <File name="creature_commands.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="37944" topLine="1140" />
- </File>
- <File name="object.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1144" topLine="74" />
- </File>
- <File name="starting_values.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="172" topLine="0" />
- </File>
- <File name="game_window.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="390" topLine="0" />
- </File>
- <File name="creature_combat.cpp" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2311" topLine="44" />
- </File>
- <File name="dungeon_location.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="147" topLine="0" />
- </File>
- <File name="monster_ai_states.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="402" topLine="0" />
- </File>
- <File name="save_load.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="204" topLine="0" />
- </File>
- <File name="game_window.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3026" topLine="85" />
- </File>
- <File name="dungeon_location.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="185" topLine="0" />
- </File>
- <File name="world.h" open="0" top="0" tabpos="10" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="195" topLine="0" />
- </File>
- <File name="monster_ai.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2420" topLine="60" />
- </File>
- <File name="save_load.cpp" open="0" top="0" tabpos="9" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="5084" topLine="141" />
- </File>
- <File name="game.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="724" topLine="33" />
+ <Cursor>
+ <Cursor1 position="220" topLine="0" />
+ </Cursor>
</File>
- <File name="fov.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="818" topLine="29" />
+ <File name="monster.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="world.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1766" topLine="0" />
+ <File name="fov.c" open="0" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="combat_all.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="199" topLine="0" />
+ <File name="string_stuff.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="169" topLine="0" />
+ </Cursor>
</File>
<File name="monster.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="574" topLine="21" />
- </File>
- <File name="render.h" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="454" topLine="16" />
- </File>
- <File name="game.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2303" topLine="90" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
<File name="combat_all.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="579" topLine="0" />
- </File>
- <File name="version.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="369" topLine="0" />
- </File>
- <File name="light_data.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_attributes.cpp" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="215" topLine="26" />
+ <File name="string_stuff.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="110" topLine="2" />
+ </Cursor>
</File>
- <File name="monster.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="6946" topLine="176" />
+ <File name="monster_ai.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="render.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="408" topLine="0" />
+ <File name="game.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_alchemy.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3400" topLine="48" />
+ <File name="templates.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="6952" topLine="169" />
+ </Cursor>
</File>
- <File name="update.h" open="0" top="0" tabpos="11" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="245" topLine="0" />
+ <File name="monster_ai_states.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="level_size.h" open="0" top="0" tabpos="11" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="229" topLine="0" />
+ <File name="game.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="dungeon_generation.cpp" open="0" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="30832" topLine="800" />
+ <File name="templates.h" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="message_log.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="255" topLine="0" />
+ <File name="game_window.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="random_number_generator.h" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="236" topLine="0" />
+ <File name="templates_strings.cpp" open="0" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="dungeon.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="198" topLine="0" />
+ <File name="object.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="1058" topLine="12" />
+ </Cursor>
</File>
- <File name="update.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="4468" topLine="508" />
+ <File name="game_window.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="level.h" open="0" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1144" topLine="13" />
+ <File name="image.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="fov.c" open="0" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="206" topLine="0" />
+ <File name="tile.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="316" topLine="0" />
+ </Cursor>
</File>
- <File name="message_log.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1138" topLine="21" />
+ <File name="tile.h" open="0" top="0" tabpos="9" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="232" topLine="0" />
+ </Cursor>
</File>
- <File name="random_number_generator.cpp" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="474" topLine="0" />
+ <File name="creature.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="23774" topLine="678" />
+ </Cursor>
</File>
- <File name="font.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="541" topLine="0" />
+ <File name="tile_size.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tooltip.h" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="player.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="level.cpp" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2385" topLine="185" />
+ <File name="creature.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="collision.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="player.h" open="0" top="0" tabpos="7" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="max_objects.h" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="211" topLine="0" />
+ <File name="item.cpp" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="random_chance.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="296" topLine="0" />
+ <File name="player_scores.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="collision.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="156" topLine="0" />
+ <File name="item.h" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
<File name="tooltip.cpp" open="0" top="0" tabpos="14" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1049" topLine="23" />
- </File>
- <File name="item_template.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="407" topLine="0" />
- </File>
- <File name="creature.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="9015" topLine="247" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="random_chance.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2753" topLine="115" />
+ <File name="player_start.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
</CodeBlocks_layout_file>
=======================================
--- /Escape from the Master's Lair.layout.save Sat Aug 4 00:00:07 2012
+++ /Escape from the Master's Lair.layout.save Mon Nov 26 03:38:05 2012
@@ -1,322 +1,324 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Release-Windows" />
- <File name="random_chance.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2753" topLine="115" />
- </File>
- <File name="item_template.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="261" topLine="0" />
- </File>
- <File name="dungeon_location.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="185" topLine="0" />
- </File>
- <File name="save_load.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="204" topLine="0" />
- </File>
- <File name="combat_all.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="199" topLine="0" />
- </File>
- <File name="race.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="833" topLine="15" />
- </File>
<File name="item_save_load.cpp" open="0" top="0" tabpos="14" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3653" topLine="162" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="dungeon_generation.cpp" open="0" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="30832" topLine="800" />
+ <File name="font.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="save_load.cpp" open="0" top="0" tabpos="9" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="5084" topLine="141" />
- </File>
- <File name="combat_all.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="579" topLine="0" />
- </File>
- <File name="race.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="387" topLine="1" />
- </File>
- <File name="item_combat.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="6965" topLine="94" />
- </File>
- <File name="dungeon.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="198" topLine="0" />
- </File>
- <File name="render.h" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="454" topLine="16" />
- </File>
- <File name="collision.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="quit.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="item.h" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1224" topLine="152" />
- </File>
- <File name="creature_skills.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2651" topLine="116" />
+ <File name="tooltip.cpp" open="0" top="0" tabpos="14" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
<File name="collision.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="156" topLine="0" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="world.h" open="0" top="0" tabpos="10" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="195" topLine="0" />
+ <File name="fov.c" open="0" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="quit.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="963" topLine="21" />
+ <File name="tooltip.h" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="item.cpp" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="11165" topLine="405" />
+ <File name="race.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_save_load.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1018" topLine="18" />
+ <File name="update.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="ai_keys.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="573" topLine="3" />
+ <File name="combat_all.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="world.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1766" topLine="0" />
+ <File name="level.cpp" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="533" topLine="0" />
+ </Cursor>
</File>
- <File name="player_windows.cpp" open="1" top="1" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="68809" topLine="1667" />
+ <File name="game.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="inventory_data.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="170" topLine="0" />
- </File>
- <File name="creature_other_stats.cpp" open="0" top="0" tabpos="4"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="199" topLine="6" />
- </File>
- <File name="ai.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="347" topLine="0" />
- </File>
- <File name="highscore.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="193" topLine="0" />
- </File>
- <File name="version.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="369" topLine="0" />
- </File>
- <File name="player_start.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="4445" topLine="194" />
- </File>
- <File name="image_data.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="age_limits.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="266" topLine="0" />
- </File>
- <File name="highscore.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="225" topLine="0" />
+ <File name="race.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
<File name="update.h" open="0" top="0" tabpos="11" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="245" topLine="0" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="player_scores.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3783" topLine="12" />
+ <File name="level.h" open="1" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="image.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="17" topLine="0" />
+ <File name="game.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="MersenneTwister.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="14358" topLine="427" />
+ <File name="random_chance.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="grammar.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="347" topLine="0" />
+ <File name="level_size.h" open="1" top="0" tabpos="11" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="update.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="4468" topLine="508" />
+ <File name="game_window.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="player.h" open="0" top="0" tabpos="7" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3347" topLine="106" />
- </File>
- <File name="image.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="308" topLine="0" />
- </File>
- <File name="message_log.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="255" topLine="0" />
- </File>
- <File name="grammar.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="798" topLine="18" />
- </File>
- <File name="tooltip.h" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="player.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="29723" topLine="651" />
- </File>
- <File name="covering.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="788" topLine="20" />
- </File>
- <File name="message_log.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1138" topLine="21" />
+ <File name="world.cpp" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="452" topLine="6" />
+ </Cursor>
</File>
<File name="game_window.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="390" topLine="0" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tooltip.cpp" open="0" top="0" tabpos="14" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1049" topLine="23" />
+ <File name="world.h" open="0" top="0" tabpos="10" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="821" topLine="18" />
+ </Cursor>
</File>
- <File name="pixels.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="main.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="covering.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="544" topLine="0" />
+ <File name="creature.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="23774" topLine="678" />
+ </Cursor>
</File>
- <File name="max_objects.h" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="211" topLine="0" />
+ <File name="material_properties.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="game_window.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3026" topLine="85" />
+ <File name="creature.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="timer.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="pixels.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
- </File>
- <File name="covering_conversions.cpp" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="261" topLine="20" />
- </File>
- <File name="game.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="724" topLine="33" />
- </File>
- <File name="timer.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="998" topLine="26" />
- </File>
- <File name="object.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1831" topLine="30" />
+ <File name="random_chance.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_experience.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="10774" topLine="295" />
+ <File name="max_objects.h" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="material_properties.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="476" topLine="3" />
+ <File name="creature_combat.cpp" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="game.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2303" topLine="90" />
+ <File name="render.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tile_size.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="231" topLine="0" />
+ <File name="creature_commands.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="object.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1144" topLine="74" />
+ <File name="render.h" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="1312" topLine="16" />
+ </Cursor>
</File>
<File name="creature_equipment.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="7224" topLine="178" />
- </File>
- <File name="material_properties.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="933" topLine="6" />
- </File>
- <File name="fov.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="818" topLine="29" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tile.h" open="0" top="0" tabpos="9" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="469" topLine="0" />
+ <File name="monster.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="monster_ai_states.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="402" topLine="0" />
+ <File name="save_load.cpp" open="0" top="0" tabpos="9" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_commands.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="37944" topLine="1140" />
+ <File name="creature_experience.cpp" open="0" top="0" tabpos="1"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="main.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="198" topLine="0" />
+ <File name="monster.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="fov.c" open="0" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="206" topLine="0" />
+ <File name="save_load.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="tile.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3899" topLine="96" />
+ <File name="creature_other_stats.cpp" open="0" top="0" tabpos="4"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
<File name="monster_ai.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2420" topLine="60" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature_combat.cpp" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2311" topLine="44" />
+ <File name="string_stuff.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="110" topLine="2" />
+ </Cursor>
</File>
- <File name="main.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="6860" topLine="164" />
+ <File name="monster_ai_states.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="font.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="541" topLine="0" />
+ <File name="string_input.cpp" open="1" top="1" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="2707" topLine="64" />
+ </Cursor>
</File>
- <File name="templates_strings.cpp" open="0" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3201" topLine="117" />
+ <File name="string_input.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="220" topLine="0" />
+ </Cursor>
</File>
- <File name="monster.h" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="574" topLine="21" />
+ <File name="object.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="1058" topLine="12" />
+ </Cursor>
</File>
- <File name="creature_attributes.cpp" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="215" topLine="26" />
+ <File name="templates.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="6952" topLine="169" />
+ </Cursor>
</File>
- <File name="light_data.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="image.cpp" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="font.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1745" topLine="48" />
+ <File name="dungeon_generation.cpp" open="1" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="26838" topLine="702" />
+ </Cursor>
</File>
<File name="templates.h" open="0" top="0" tabpos="1" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2465" topLine="70" />
- </File>
- <File name="monster.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="6946" topLine="176" />
- </File>
- <File name="creature_alchemy.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="3400" topLine="48" />
- </File>
- <File name="render.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="408" topLine="0" />
- </File>
- <File name="level_size.h" open="0" top="0" tabpos="11" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="229" topLine="0" />
- </File>
- <File name="enumerations.h" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1713" topLine="95" />
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="templates.cpp" open="0" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="373" topLine="0" />
+ <File name="string_stuff.cpp" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="169" topLine="0" />
+ </Cursor>
</File>
- <File name="creature.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="9015" topLine="247" />
+ <File name="templates_strings.cpp" open="0" top="0" tabpos="6" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="random_number_generator.h" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="236" topLine="0" />
+ <File name="player.cpp" open="0" top="0" tabpos="3" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="level.h" open="0" top="0" tabpos="13" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="1144" topLine="13" />
+ <File name="tile.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="316" topLine="0" />
+ </Cursor>
</File>
- <File name="effect.h" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="player.h" open="0" top="0" tabpos="7" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="string_input.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="242" topLine="0" />
+ <File name="tile.h" open="0" top="0" tabpos="9" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="232" topLine="0" />
+ </Cursor>
</File>
- <File name="random_number_generator.cpp" open="0" top="0" tabpos="0"
split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="474" topLine="0" />
+ <File name="item.cpp" open="0" top="0" tabpos="15" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="level.cpp" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="2385" topLine="185" />
+ <File name="player_scores.cpp" open="0" top="0" tabpos="5" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="effect.cpp" open="0" top="0" tabpos="0" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="132" topLine="0" />
+ <File name="tile_size.h" open="0" top="0" tabpos="6" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="string_input.cpp" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="11454" topLine="280" />
+ <File name="item.h" open="0" top="0" tabpos="2" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="creature.cpp" open="0" top="0" tabpos="4" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="15124" topLine="435" />
+ <File name="enumerations.h" open="1" top="0" tabpos="2" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="random_chance.h" open="0" top="0" tabpos="3" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="296" topLine="0" />
+ <File name="player_start.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="item_template.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="407" topLine="0" />
+ <File name="ai.h" open="0" top="0" tabpos="4" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="dungeon_location.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="147" topLine="0" />
+ <File name="item_combat.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="starting_values.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="172" topLine="0" />
+ <File name="font.cpp" open="0" top="0" tabpos="5" split="0" active="1"
splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="0" topLine="0" />
+ </Cursor>
</File>
- <File name="covering_conversions.h" open="0" top="0" tabpos="0" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
- <Cursor1 position="325" topLine="0" />
+ <File name="player_windows.cpp" open="0" top="0" tabpos="1" split="0"
active="1" splitpos="0" zoom_1="0" zoom_2="0">
+ <Cursor>
+ <Cursor1 position="3711" topLine="104" />
+ </Cursor>
</File>
</CodeBlocks_layout_file>
=======================================
--- /level_size.h Tue Mar 22 00:55:07 2011
+++ /level_size.h Mon Nov 26 03:38:05 2012
@@ -4,10 +4,16 @@
#ifndef level_size_h
#define level_size_h
-const int LEVEL_X_MIN=64;
+/**const int LEVEL_X_MIN=64;
const int LEVEL_Y_MIN=64;
const int LEVEL_X_MAX=128;
-const int LEVEL_Y_MAX=128;
+const int LEVEL_Y_MAX=128;*/
+
+const int LEVEL_X_MIN=128;
+const int LEVEL_Y_MIN=128;
+
+const int LEVEL_X_MAX=256;
+const int LEVEL_Y_MAX=256;
#endif
=======================================
--- /player_windows.cpp Thu Apr 21 19:48:51 2011
+++ /player_windows.cpp Mon Nov 26 03:38:05 2012
@@ -119,7 +119,7 @@
get_name.clear();
//If the name is associated with a character that already exists.
- if(boost::filesystem3::is_regular_file(to_lower_copy(check_name))){
+ if(boost::filesystem::is_regular_file(to_lower_copy(check_name))){
game.old_game();
}
=======================================
--- /string_input.cpp Thu Apr 21 20:17:18 2011
+++ /string_input.cpp Mon Nov 26 03:38:05 2012
@@ -7,6 +7,8 @@
#include "save_load.h"
#include "version.h"
#include "message_log.h"
+#include "pixels.h"
+#include "savepng.h"
using namespace std;
using namespace boost::algorithm;
@@ -79,6 +81,76 @@
update_text_log("Dev mode off.",true,MESSAGE_SYSTEM);
}
}
+
+ else if(istarts_with(str_command,"export")){
+ for(int i=0;i<vector_levels.size();i++){
+ //Determine the date and time.
+ /**time_t now;
+ struct tm *tm_now;
+ char buff[BUFSIZ];
+ now=time(NULL);
+ tm_now=localtime(&now);
+
+ //Store the date and time in buff.
+ strftime(buff,sizeof
buff,"%Y-%m-%d_%H.%M.%S",tm_now);*/
+
+ //Used to store the filename of the picture.
+ string picture_name;
+
+ //Set the filename.
+ picture_name="dungeon_map_";
+ picture_name+=string_stuff.num_to_string(i);
+ picture_name+=".png";
+
+ SDL_Surface* surface_temp=NULL;
+
+ int map_width=vector_levels[i].level_x;
+ int map_height=vector_levels[i].level_y;
+
+ uint32_t rmask,gmask,bmask,amask;
+
+ if(SDL_BYTEORDER==SDL_BIG_ENDIAN){
+ rmask = 0xff000000;
+ gmask = 0x00ff0000;
+ bmask = 0x0000ff00;
+ amask = 0x000000ff;
+ }
+ else{
+ rmask = 0x000000ff;
+ gmask = 0x0000ff00;
+ bmask = 0x00ff0000;
+ amask = 0xff000000;
+ }
+
+ //Setup a surface to hold the tiles as individual
pixels.
+
surface_temp=SDL_CreateRGBSurface(SDL_SWSURFACE,map_width,map_height,32,rmask,gmask,bmask,amask);
+
+ //If the surface must be locked.
+ if(SDL_MUSTLOCK(surface_temp)){
+ //Lock the surface.
+ SDL_LockSurface(surface_temp);
+ }
+
+ //Put one pixel in the temporary surface to represent
each tile.
+ for(int x=0;x<map_width;x++){
+ for(int y=0;y<map_height;y++){
+ color_data
color=tile_to_color(&vector_levels[i].tiles[x][y]);
+ uint32_t
pixel=SDL_MapRGBA(surface_temp->format,color.red*255,color.green*255,color.blue*255,255);
+ surface_put_pixel(surface_temp,x,y,pixel);
+ }
+ }
+
+ //If the surface had to be locked.
+ if(SDL_MUSTLOCK(surface_temp)){
+ //Unlock the surface.
+ SDL_UnlockSurface(surface_temp);
+ }
+
+ IMG_SavePNG(picture_name.c_str(),surface_temp,-1);
+
+ SDL_FreeSurface(surface_temp);
+ }
+ }
else if(player.option_dev && istarts_with(str_command,"add")){
ierase_first(str_command,"add");
@@ -321,5 +393,49 @@
Uint8 *keystates=SDL_GetKeyState(NULL);
keystates[SDLK_ESCAPE]=NULL;
}
+ }
+}
+
+color_data string_input::tile_to_color(Tile* tile){
+ color_data color;
+ color=color_shorts_to_doubles(0,0,0);
+
+ /**
+ TILE_TYPE_UP_STAIRS,
+ ,
+ ,
+ ,
+ ,
+ TILE_TYPE_TRAP*/
+
+ if(tile->type==TILE_TYPE_WALL){
+ color=color_shorts_to_doubles(255,255,255);
+ }
+ else if(tile->type==TILE_TYPE_FLOOR){
+ color=color_shorts_to_doubles(0,0,0);
+ }
+ else if(tile->type==TILE_TYPE_SOLID){
+ color=color_shorts_to_doubles(89,89,89);
+ }
+ else if(tile->type==TILE_TYPE_LIQUID ||
tile->type==TILE_TYPE_FOUNTAIN){
+ if(tile->material==MATERIAL_WATER){
+ if(tile->has_covering(COVERING_ICE)){
+ color=color_shorts_to_doubles(128,0,128);
+ }
+ else{
+ color=color_shorts_to_doubles(0,0,255);
+ }
+ }
+ else if(tile->material==MATERIAL_LAVA){
+ color=color_shorts_to_doubles(255,0,0);
+ }
}
+ else if(tile->type==TILE_TYPE_DOWN_STAIRS){
+ color=color_shorts_to_doubles(0,255,0);
+ }
+ else if(tile->type==TILE_TYPE_DOOR_CLOSED ||
tile->type==TILE_TYPE_DOOR_OPEN || tile->type==TILE_TYPE_SECRET_DOOR){
+ color=color_shorts_to_doubles(89,44,0);
+ }
+
+ return color;
}
=======================================
--- /string_input.h Sun Apr 3 03:01:05 2011
+++ /string_input.h Mon Nov 26 03:38:05 2012
@@ -4,6 +4,9 @@
#ifndef string_input_h
#define string_input_h
+#include "render.h"
+#include "tile.h"
+
#include <string>
#include <vector>
@@ -27,6 +30,8 @@
string_input();
void handle_events();
+
+ color_data tile_to_color(Tile* tile);
};
#endif
=======================================
--- /templates.cpp Thu Apr 21 19:48:51 2011
+++ /templates.cpp Mon Nov 26 03:38:05 2012
@@ -184,7 +184,7 @@
bool Templates::load_templates(){
//Look through all of the files in the directory.
- for(boost::filesystem3::directory_iterator
it("data/templates");it!=boost::filesystem3::directory_iterator();it++){
+ for(boost::filesystem::directory_iterator
it("data/templates");it!=boost::filesystem::directory_iterator();it++){
//Determine the file's full path name.
string file_path=it->path().string();
@@ -192,7 +192,7 @@
string file_name=it->path().filename().string();
//If the file is not a directory.
- if(boost::filesystem3::is_regular_file(it->path())){
+ if(boost::filesystem::is_regular_file(it->path())){
load.open(file_path.c_str(),ifstream::in);
if(load!=NULL){
=======================================
--- /version.h Sat Aug 4 00:00:07 2012
+++ /version.h Mon Nov 26 03:38:05 2012
@@ -4,10 +4,10 @@
namespace AutoVersion{
//Date Version Types
- static const char DATE[] = "04";
- static const char MONTH[] = "08";
+ static const char DATE[] = "24";
+ static const char MONTH[] = "10";
static const char YEAR[] = "2012";
- static const char UBUNTU_VERSION_STYLE[] = "12.08";
+ static const char UBUNTU_VERSION_STYLE[] = "12.10";
//Software Status
static const char STATUS[] = "Beta";
@@ -20,7 +20,7 @@
static const long REVISION = 17267;
//Miscellaneous Version Types
- static const long BUILDS_COUNT = 7394;
+ static const long BUILDS_COUNT = 7396;
#define RC_FILEVERSION 0,6,3117,17267
#define RC_FILEVERSION_STRING "0, 6, 3117, 17267\0"
static const char FULLVERSION_STRING[] = "0.6.3117.17267";
=======================================
--- /world.cpp Fri Apr 15 17:11:18 2011
+++ /world.cpp Mon Nov 26 03:38:05 2012
@@ -20,6 +20,8 @@
BitmapFont font;
BitmapFont font_small;
+String_Stuff string_stuff;
+
//String stream used to easily render ints and stuff as strings.
stringstream ss("");
=======================================
--- /world.h Wed Mar 16 19:54:37 2011
+++ /world.h Mon Nov 26 03:38:05 2012
@@ -24,6 +24,7 @@
#include "tile_size.h"
#include "dungeon_location.h"
#include "templates.h"
+#include "string_stuff.h"
extern Game_Window main_window;
@@ -36,6 +37,8 @@
extern BitmapFont font;
extern BitmapFont font_small;
+extern String_Stuff string_stuff;
+
extern std::stringstream ss;
extern std::string msg;