remove auto generated comments from all files, fix some missing tabs, remove unused variables from config.h

This commit is contained in:
jacob1 2013-03-06 12:05:59 -05:00
parent ad951eb9af
commit 037618e6f8
130 changed files with 114 additions and 1015 deletions

View File

@ -1,10 +1,3 @@
/*
* Shaders.h
*
* Created on: Jan 7, 2012
* Author: Simon
*/
#ifndef SHADERS_H_ #ifndef SHADERS_H_
#define SHADERS_H_ #define SHADERS_H_

View File

@ -1,10 +1,3 @@
/*
* Config.h
*
* Created on: Jan 5, 2012
* Author: Simon
*/
//#ifndef CONFIG_H_ //#ifndef CONFIG_H_
//#define CONFIG_H_ //#define CONFIG_H_
@ -99,8 +92,6 @@
#define BRUSH_DIR "Brushes" #define BRUSH_DIR "Brushes"
#define APPDATA_SUBDIR "\\HardWIRED"
//Number of unique thumbnails to have in cache at one time //Number of unique thumbnails to have in cache at one time
#define THUMB_CACHE_SIZE 256 #define THUMB_CACHE_SIZE 256
@ -111,7 +102,7 @@
#define M_GRAV 6.67300e-1 #define M_GRAV 6.67300e-1
#endif #endif
//Number of asynchronous connections used to retrieve thumnails //Number of asynchronous connections used to retrieve thumbnails
#define IMGCONNS 5 #define IMGCONNS 5
//Not sure //Not sure
#define TIMEOUT 100 #define TIMEOUT 100
@ -139,7 +130,6 @@
#define GRAV_DIFF #define GRAV_DIFF
#define MAXSIGNS 16 #define MAXSIGNS 16
#define TAG_MAX 256
#define ZSIZE_D 16 #define ZSIZE_D 16
#define ZFACTOR_D 8 #define ZFACTOR_D 8
@ -156,23 +146,7 @@ extern unsigned char ZSIZE;
#define AIR_VLOSS 0.999f #define AIR_VLOSS 0.999f
#define AIR_PLOSS 0.9999f #define AIR_PLOSS 0.9999f
#define GRID_X 5
#define GRID_Y 4
#define GRID_P 3
#define GRID_S 6
#define GRID_Z 3
#define CATALOGUE_X 4
#define CATALOGUE_Y 3
#define CATALOGUE_S 6
#define CATALOGUE_Z 3
#define STAMP_MAX 240
#define SAVE_OPS
#define NGOL 24 #define NGOL 24
#define NGOLALT 24 //NGOL should be 24, but use this var until I find out why
#define CIRCLE_BRUSH 0 #define CIRCLE_BRUSH 0
#define SQUARE_BRUSH 1 #define SQUARE_BRUSH 1
@ -215,10 +189,4 @@ extern unsigned char ZSIZE;
#define SDEUT #define SDEUT
//#define REALHEAT //#define REALHEAT
#define DEBUG_PARTS 0x0001
#define DEBUG_PARTCOUNT 0x0002
#define DEBUG_DRAWTOOL 0x0004
#define DEBUG_PERFORMANCE_CALC 0x0008
#define DEBUG_PERFORMANCE_FRAME 0x0010
//#endif /* CONFIG_H_ */ //#endif /* CONFIG_H_ */

View File

@ -1,10 +1,3 @@
/*
* Controller.h
*
* Created on: Jan 25, 2012
* Author: Simon
*/
#ifndef CONTROLLER_H_ #ifndef CONTROLLER_H_
#define CONTROLLER_H_ #define CONTROLLER_H_

View File

@ -1,11 +1,3 @@
//
// Style.cpp
// The Powder Toy
//
// Created by Simon Robertshaw on 14/05/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include <iostream> #include <iostream>
#include "Style.h" #include "Style.h"

View File

@ -1,12 +1,5 @@
// #ifndef STYLE_H_
// Style.h #define STYLE_H_
// The Powder Toy
//
// Created by Simon Robertshaw on 14/05/2012.
//
#ifndef The_Powder_Toy_Style_h
#define The_Powder_Toy_Style_h
namespace ui { class Colour; } namespace ui { class Colour; }

View File

@ -1,10 +1,3 @@
/*
* Update.h
*
* Created on: Jun 21, 2012
* Author: Simon
*/
#ifndef UPDATE_H_ #ifndef UPDATE_H_
#define UPDATE_H_ #define UPDATE_H_

View File

@ -1,10 +1,3 @@
/*
* Kitty.cpp
*
* Created on: Feb 2, 2012
* Author: Simon
*/
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <string.h> #include <string.h>

View File

@ -1,12 +1,5 @@
/* #ifndef COMMANDINTERFACE_H_
* Kitty.h #define COMMANDINTERFACE_H_
*
* Created on: Feb 2, 2012
* Author: Simon
*/
#ifndef KITTY_H_
#define KITTY_H_
#include <string> #include <string>
#include "interface/Engine.h" #include "interface/Engine.h"
@ -43,4 +36,4 @@ public:
virtual ~CommandInterface(); virtual ~CommandInterface();
}; };
#endif /* KITTY_H_ */ #endif /* COMMANDINTERFACE_H_ */

View File

@ -1,10 +1,3 @@
/*
* LuaScriptHelper.h
*
* Created on: Feb 12, 2012
* Author: Simon
*/
#ifndef LUASCRIPTHELPER_H_ #ifndef LUASCRIPTHELPER_H_
#define LUASCRIPTHELPER_H_ #define LUASCRIPTHELPER_H_

View File

@ -1,10 +1,3 @@
/*
* LuaScriptInterface.cpp
*
* Created on: Feb 11, 2012
* Author: Simon
*/
#include <string> #include <string>
#include <iomanip> #include <iomanip>
#include <vector> #include <vector>

View File

@ -1,10 +1,3 @@
/*
* LuaScriptInterface.h
*
* Created on: Feb 11, 2012
* Author: Simon
*/
#ifndef LUASCRIPTINTERFACE_H_ #ifndef LUASCRIPTINTERFACE_H_
#define LUASCRIPTINTERFACE_H_ #define LUASCRIPTINTERFACE_H_

View File

@ -1,10 +1,3 @@
/*
* TPTSTypes.cpp
*
* Created on: Feb 4, 2012
* Author: Simon
*/
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <stdint.h> #include <stdint.h>

View File

@ -1,10 +1,3 @@
/*
* TPTSTypes.h
*
* Created on: Feb 4, 2012
* Author: Simon
*/
#ifndef TPTSTYPES_H_ #ifndef TPTSTYPES_H_
#define TPTSTYPES_H_ #define TPTSTYPES_H_

View File

@ -1,10 +1,3 @@
/*
* TPTScriptInterface.cpp
*
* Created on: Feb 5, 2012
* Author: Simon
*/
#include <stack> #include <stack>
#include <iostream> #include <iostream>
#include <string> #include <string>

View File

@ -1,10 +1,3 @@
/*
* TPTScriptInterface.h
*
* Created on: Feb 5, 2012
* Author: Simon
*/
#ifndef TPTSCRIPTINTERFACE_H_ #ifndef TPTSCRIPTINTERFACE_H_
#define TPTSCRIPTINTERFACE_H_ #define TPTSCRIPTINTERFACE_H_

View File

@ -1,10 +1,3 @@
/*
* ClientListener.h
*
* Created on: Jun 19, 2012
* Author: Simon
*/
#ifndef CLIENTLISTENER_H_ #ifndef CLIENTLISTENER_H_
#define CLIENTLISTENER_H_ #define CLIENTLISTENER_H_

View File

@ -1318,7 +1318,7 @@ void GameSave::readPSv(char * data, int dataLength)
ttv |= (d[p++]); ttv |= (d[p++]);
particles[i-1].tmp = ttv; particles[i-1].tmp = ttv;
if (ver<53 && !particles[i-1].tmp) if (ver<53 && !particles[i-1].tmp)
for (q = 1; q<=NGOLALT; q++) { for (q = 1; q<=NGOL; q++) {
if (particles[i-1].type==goltype[q-1] && grule[q][9]==2) if (particles[i-1].type==goltype[q-1] && grule[q][9]==2)
particles[i-1].tmp = grule[q][9]-1; particles[i-1].tmp = grule[q][9]-1;
} }
@ -1500,7 +1500,7 @@ void GameSave::readPSv(char * data, int dataLength)
if(ver<51 && ((ty>=78 && ty<=89) || (ty>=134 && ty<=146 && ty!=141))){ if(ver<51 && ((ty>=78 && ty<=89) || (ty>=134 && ty<=146 && ty!=141))){
//Replace old GOL //Replace old GOL
particles[i-1].type = PT_LIFE; particles[i-1].type = PT_LIFE;
for (gnum = 0; gnum<NGOLALT; gnum++){ for (gnum = 0; gnum<NGOL; gnum++){
if (ty==goltype[gnum]) if (ty==goltype[gnum])
particles[i-1].ctype = gnum; particles[i-1].ctype = gnum;
} }
@ -1508,7 +1508,7 @@ void GameSave::readPSv(char * data, int dataLength)
} }
if(ver<52 && (ty==PT_CLNE || ty==PT_PCLN || ty==PT_BCLN)){ if(ver<52 && (ty==PT_CLNE || ty==PT_PCLN || ty==PT_BCLN)){
//Replace old GOL ctypes in clone //Replace old GOL ctypes in clone
for (gnum = 0; gnum<NGOLALT; gnum++){ for (gnum = 0; gnum<NGOL; gnum++){
if (particles[i-1].ctype==goltype[gnum]) if (particles[i-1].ctype==goltype[gnum])
{ {
particles[i-1].ctype = PT_LIFE; particles[i-1].ctype = PT_LIFE;

View File

@ -1,10 +1,3 @@
//
// GameSave.h
// The Powder Toy
//
// Created by Simon Robertshaw on 04/06/2012.
//
#ifndef The_Powder_Toy_GameSave_h #ifndef The_Powder_Toy_GameSave_h
#define The_Powder_Toy_GameSave_h #define The_Powder_Toy_GameSave_h

View File

@ -1,10 +1,3 @@
/*
* SaveFile.cpp
*
* Created on: Jun 6, 2012
* Author: Simon
*/
#include "SaveFile.h" #include "SaveFile.h"
#include "GameSave.h" #include "GameSave.h"
#include "Client.h" #include "Client.h"

View File

@ -1,10 +1,3 @@
/*
* SaveFile.h
*
* Created on: Jun 6, 2012
* Author: Simon
*/
#ifndef SAVEFILE_H_ #ifndef SAVEFILE_H_
#define SAVEFILE_H_ #define SAVEFILE_H_

View File

@ -1,10 +1,3 @@
/*
* Save.cpp
*
* Created on: Jan 26, 2012
* Author: Simon
*/
#include "SaveInfo.h" #include "SaveInfo.h"
#include "GameSave.h" #include "GameSave.h"
#include "Client.h" #include "Client.h"

View File

@ -1,10 +1,3 @@
/*
* User.h
*
* Created on: Jan 25, 2012
* Author: Simon
*/
#ifndef USER_H_ #ifndef USER_H_
#define USER_H_ #define USER_H_

View File

@ -1,10 +1,3 @@
/*
* ElementSearchActivity.cpp
*
* Created on: Jun 24, 2012
* Author: Simon
*/
#include <algorithm> #include <algorithm>
#include <iomanip> #include <iomanip>
#include "ColourPickerActivity.h" #include "ColourPickerActivity.h"

View File

@ -1,10 +1,3 @@
/*
* ConsoleCommand.h
*
* Created on: Feb 1, 2012
* Author: Simon
*/
#ifndef CONSOLECOMMAND_H_ #ifndef CONSOLECOMMAND_H_
#define CONSOLECOMMAND_H_ #define CONSOLECOMMAND_H_

View File

@ -1,10 +1,3 @@
/*
* ConsoleController.cpp
*
* Created on: Jan 31, 2012
* Author: Simon
*/
#include <stack> #include <stack>
#include "ConsoleController.h" #include "ConsoleController.h"

View File

@ -1,10 +1,3 @@
/*
* ConsoleController.h
*
* Created on: Jan 31, 2012
* Author: Simon
*/
#ifndef CONSOLECONTROLLER_H_ #ifndef CONSOLECONTROLLER_H_
#define CONSOLECONTROLLER_H_ #define CONSOLECONTROLLER_H_

View File

@ -1,10 +1,3 @@
/*
* ConsoleModel.cpp
*
* Created on: Feb 1, 2012
* Author: Simon
*/
#include "client/Client.h" #include "client/Client.h"
#include "ConsoleModel.h" #include "ConsoleModel.h"

View File

@ -1,10 +1,3 @@
/*
* ConsoleModel.h
*
* Created on: Feb 1, 2012
* Author: Simon
*/
#ifndef CONSOLEMODEL_H_ #ifndef CONSOLEMODEL_H_
#define CONSOLEMODEL_H_ #define CONSOLEMODEL_H_

View File

@ -1,10 +1,3 @@
/*
* ConsoleView.cpp
*
* Created on: Jan 31, 2012
* Author: Simon
*/
#include "ConsoleView.h" #include "ConsoleView.h"
#include "interface/Keys.h" #include "interface/Keys.h"

View File

@ -1,10 +1,3 @@
/*
* ConsoleView.h
*
* Created on: Jan 31, 2012
* Author: Simon
*/
#ifndef CONSOLEVIEW_H_ #ifndef CONSOLEVIEW_H_
#define CONSOLEVIEW_H_ #define CONSOLEVIEW_H_

View File

@ -1,10 +1,3 @@
/*
* ConfirmPrompt.cpp
*
* Created on: Apr 6, 2012
* Author: Simon
*/
#include "ConfirmPrompt.h" #include "ConfirmPrompt.h"
#include "Style.h" #include "Style.h"
#include "interface/Label.h" #include "interface/Label.h"

View File

@ -1,10 +1,3 @@
/*
* ConfirmPrompt.h
*
* Created on: Apr 6, 2012
* Author: Simon
*/
#ifndef CONFIRMPROMPT_H_ #ifndef CONFIRMPROMPT_H_
#define CONFIRMPROMPT_H_ #define CONFIRMPROMPT_H_

View File

@ -1,10 +1,3 @@
/*
* ErrorMessage.cpp
*
* Created on: Jan 29, 2012
* Author: Simon
*/
#include "Style.h" #include "Style.h"
#include "ErrorMessage.h" #include "ErrorMessage.h"
#include "interface/Button.h" #include "interface/Button.h"

View File

@ -1,10 +1,3 @@
/*
* ErrorMessage.h
*
* Created on: Jan 29, 2012
* Author: Simon
*/
#ifndef ERRORMESSAGE_H_ #ifndef ERRORMESSAGE_H_
#define ERRORMESSAGE_H_ #define ERRORMESSAGE_H_

View File

@ -1,10 +1,3 @@
/*
* InformationMessage.cpp
*
* Created on: Jan 29, 2012
* Author: Simon
*/
#include "Style.h" #include "Style.h"
#include "InformationMessage.h" #include "InformationMessage.h"
#include "interface/Button.h" #include "interface/Button.h"

View File

@ -1,10 +1,3 @@
/*
* InformationMessage.h
*
* Created on: Jan 29, 2012
* Author: Simon
*/
#ifndef INFORMATIONMESSAGE_H_ #ifndef INFORMATIONMESSAGE_H_
#define INFORMATIONMESSAGE_H_ #define INFORMATIONMESSAGE_H_

View File

@ -1,10 +1,3 @@
/*
* ConfirmPrompt.cpp
*
* Created on: Apr 6, 2012
* Author: Simon
*/
#include <iostream> #include <iostream>
#include "TextPrompt.h" #include "TextPrompt.h"
#include "interface/Label.h" #include "interface/Label.h"

View File

@ -1,10 +1,3 @@
/*
* ConfirmPrompt.h
*
* Created on: Apr 6, 2012
* Author: Simon
*/
#ifndef TEXTPROMPT_H_ #ifndef TEXTPROMPT_H_
#define TEXTPROMPT_H_ #define TEXTPROMPT_H_

View File

@ -1,10 +1,3 @@
/*
* ElementSearchActivity.cpp
*
* Created on: Jun 24, 2012
* Author: Simon
*/
#include <algorithm> #include <algorithm>
#include "ElementSearchActivity.h" #include "ElementSearchActivity.h"
#include "interface/Textbox.h" #include "interface/Textbox.h"
@ -187,6 +180,5 @@ void ElementSearchActivity::OnKeyPress(int key, Uint16 character, bool shift, bo
} }
ElementSearchActivity::~ElementSearchActivity() { ElementSearchActivity::~ElementSearchActivity() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* ElementSearchActivity.h
*
* Created on: Jun 24, 2012
* Author: Simon
*/
#ifndef ELEMENTSEARCHACTIVITY_H_ #ifndef ELEMENTSEARCHACTIVITY_H_
#define ELEMENTSEARCHACTIVITY_H_ #define ELEMENTSEARCHACTIVITY_H_

View File

@ -1,9 +1,3 @@
/*
* Brush.h
*
* Created on: Jan 22, 2012
* Author: Simon
*/
#ifndef BRUSH_H_ #ifndef BRUSH_H_
#define BRUSH_H_ #define BRUSH_H_

View File

@ -1,10 +1,3 @@
/*
* ElipseBrush.h
*
* Created on: Jan 26, 2012
* Author: Simon
*/
#ifndef ELIPSEBRUSH_H_ #ifndef ELIPSEBRUSH_H_
#define ELIPSEBRUSH_H_ #define ELIPSEBRUSH_H_

View File

@ -1,12 +1,5 @@
/* #ifndef GAMEMODELEXCEPTION_H_
* SaveLoadException.h #define GAMEMODELEXCEPTION_H_
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#ifndef SAVELOADEXCEPTION_H_
#define SAVELOADEXCEPTION_H_
#include <string> #include <string>
#include <exception> #include <exception>
@ -23,4 +16,4 @@ public:
~GameModelException() throw() {}; ~GameModelException() throw() {};
}; };
#endif /* SAVELOADEXCEPTION_H_ */ #endif /* GAMEMODELEXCEPTION_H_ */

View File

@ -1,10 +1,3 @@
/*
* Menu.h
*
* Created on: Jan 22, 2012
* Author: Simon
*/
#ifndef MENU_H_ #ifndef MENU_H_
#define MENU_H_ #define MENU_H_

View File

@ -1,10 +1,3 @@
/*
* Notification.h
*
* Created on: Jun 20, 2012
* Author: Simon
*/
#ifndef NOTIFICATION_H_ #ifndef NOTIFICATION_H_
#define NOTIFICATION_H_ #define NOTIFICATION_H_

View File

@ -1,10 +1,3 @@
/*
* Tool.cpp
*
* Created on: Jun 24, 2012
* Author: Simon
*/
#include <string> #include <string>
#include "Tool.h" #include "Tool.h"
#include "game/Brush.h" #include "game/Brush.h"

View File

@ -1,10 +1,3 @@
/*
* Tool.h
*
* Created on: Jan 22, 2012
* Author: Simon
*/
#ifndef TOOL_H_ #ifndef TOOL_H_
#define TOOL_H_ #define TOOL_H_

View File

@ -1,10 +1,3 @@
/*
* ToolButton.cpp
*
* Created on: Jan 30, 2012
* Author: Simon
*/
#include "ToolButton.h" #include "ToolButton.h"
#include "interface/Keys.h" #include "interface/Keys.h"
@ -94,6 +87,5 @@ int ToolButton::GetSelectionState()
} }
ToolButton::~ToolButton() { ToolButton::~ToolButton() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* ToolButton.h
*
* Created on: Jan 30, 2012
* Author: Simon
*/
#ifndef TOOLBUTTON_H_ #ifndef TOOLBUTTON_H_
#define TOOLBUTTON_H_ #define TOOLBUTTON_H_

View File

@ -1,9 +1,3 @@
/*
* Renderer.cpp
*
* Created on: Jan 7, 2012
* Author: Simon
*/
#include <cmath> #include <cmath>
#include <iostream> #include <iostream>
#include <vector> #include <vector>

View File

@ -1,10 +1,3 @@
//
// Appearance.cpp
// The Powder Toy
//
// Created by Simon Robertshaw on 15/05/2012.
//
#include <iostream> #include <iostream>
#include "Appearance.h" #include "Appearance.h"

View File

@ -1,12 +1,5 @@
// #ifndef APPEARANCE_H_
// Appearance.h #define APPEARANCE_H_
// The Powder Toy
//
// Created by Simon Robertshaw on 15/05/2012.
//
#ifndef The_Powder_Toy_Appearance_h
#define The_Powder_Toy_Appearance_h
#include "Border.h" #include "Border.h"
#include "Colour.h" #include "Colour.h"

View File

@ -1,10 +1,3 @@
/*
* Button.cpp
*
* Created on: Jan 8, 2012
* Author: Simon
*/
#include <iostream> #include <iostream>
#include "interface/Button.h" #include "interface/Button.h"
#include "graphics/Graphics.h" #include "graphics/Graphics.h"

View File

@ -1,10 +1,3 @@
/*
* Button.h
*
* Created on: Jan 8, 2012
* Author: Simon
*/
#ifndef BUTTON_H_ #ifndef BUTTON_H_
#define BUTTON_H_ #define BUTTON_H_

View File

@ -1,10 +1,3 @@
/*
* Checkbox.cpp
*
* Created on: Jan 26, 2012
* Author: Simon
*/
#include "Checkbox.h" #include "Checkbox.h"
using namespace ui; using namespace ui;
@ -17,7 +10,6 @@ Checkbox::Checkbox(ui::Point position, ui::Point size, std::string text, std::st
checked(false), checked(false),
actionCallback(NULL) actionCallback(NULL)
{ {
// TODO Auto-generated constructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* Checkbox.h
*
* Created on: Jan 26, 2012
* Author: Simon
*/
#ifndef CHECKBOX_H_ #ifndef CHECKBOX_H_
#define CHECKBOX_H_ #define CHECKBOX_H_

View File

@ -1,10 +1,3 @@
/*
* DropDown.cpp
*
* Created on: Apr 16, 2012
* Author: Simon
*/
#include <iostream> #include <iostream>
#include "Style.h" #include "Style.h"
#include "Button.h" #include "Button.h"

View File

@ -1,10 +1,3 @@
/*
* DropDown.h
*
* Created on: Apr 16, 2012
* Author: Simon
*/
#ifndef DROPDOWN_H_ #ifndef DROPDOWN_H_
#define DROPDOWN_H_ #define DROPDOWN_H_

View File

@ -1,10 +1,3 @@
/*
* Slider.cpp
*
* Created on: Mar 3, 2012
* Author: Simon
*/
#include <iostream> #include <iostream>
#include "Slider.h" #include "Slider.h"
#include "Colour.h" #include "Colour.h"
@ -20,7 +13,6 @@ Slider::Slider(Point position, Point size, int steps):
col1(0, 0, 0, 0), col1(0, 0, 0, 0),
col2(0, 0, 0, 0) col2(0, 0, 0, 0)
{ {
// TODO Auto-generated constructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* Slider.h
*
* Created on: Mar 3, 2012
* Author: Simon
*/
#ifndef SLIDER_H_ #ifndef SLIDER_H_
#define SLIDER_H_ #define SLIDER_H_

View File

@ -1,11 +1,3 @@
/*
* Spinner.cpp
*
* Created on: Feb 11, 2012
* Author: Simon
*/
#include <cmath> #include <cmath>
#include <iostream> #include <iostream>
#include "Spinner.h" #include "Spinner.h"

View File

@ -1,10 +1,3 @@
/*
* Spinner.h
*
* Created on: Feb 11, 2012
* Author: Simon
*/
#ifndef SPINNER_H_ #ifndef SPINNER_H_
#define SPINNER_H_ #define SPINNER_H_

View File

@ -1,9 +1,3 @@
/*
* StampsController.cpp
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#include <sstream> #include <sstream>
#include "client/Client.h" #include "client/Client.h"

View File

@ -1,10 +1,3 @@
/*
* StampsController.h
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#ifndef STAMPSCONTROLLER_H_ #ifndef STAMPSCONTROLLER_H_
#define STAMPSCONTROLLER_H_ #define STAMPSCONTROLLER_H_

View File

@ -1,10 +1,3 @@
/*
* StampsModel.cpp
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#include "LocalBrowserModel.h" #include "LocalBrowserModel.h"
#include "LocalBrowserView.h" #include "LocalBrowserView.h"
#include "LocalBrowserModelException.h" #include "LocalBrowserModelException.h"
@ -16,7 +9,6 @@ LocalBrowserModel::LocalBrowserModel():
currentPage(1), currentPage(1),
stampToFront(1) stampToFront(1)
{ {
// TODO Auto-generated constructor stub
//stampIDs = Client::Ref().GetStamps(); //stampIDs = Client::Ref().GetStamps();
stampIDs = Client::Ref().GetStamps(0, 16); stampIDs = Client::Ref().GetStamps(0, 16);
} }

View File

@ -1,10 +1,3 @@
/*
* StampsModel.h
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#ifndef STAMPSMODEL_H_ #ifndef STAMPSMODEL_H_
#define STAMPSMODEL_H_ #define STAMPSMODEL_H_

View File

@ -1,10 +1,3 @@
/*
* StampsModelException.h
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#ifndef STAMPSMODELEXCEPTION_H_ #ifndef STAMPSMODELEXCEPTION_H_
#define STAMPSMODELEXCEPTION_H_ #define STAMPSMODELEXCEPTION_H_

View File

@ -1,10 +1,3 @@
/*
* StampsView.cpp
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#include <sstream> #include <sstream>
#include "client/Client.h" #include "client/Client.h"
#include "LocalBrowserView.h" #include "LocalBrowserView.h"
@ -219,6 +212,5 @@ void LocalBrowserView::OnKeyPress(int key, Uint16 character, bool shift, bool ct
} }
LocalBrowserView::~LocalBrowserView() { LocalBrowserView::~LocalBrowserView() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* StampsView.h
*
* Created on: Mar 29, 2012
* Author: Simon
*/
#ifndef STAMPSVIEW_H_ #ifndef STAMPSVIEW_H_
#define STAMPSVIEW_H_ #define STAMPSVIEW_H_

View File

@ -1,10 +1,3 @@
/*
* LoginController.cpp
*
* Created on: Jan 24, 2012
* Author: Simon
*/
#include "LoginController.h" #include "LoginController.h"
#include "client/User.h" #include "client/User.h"
#include "client/Client.h" #include "client/Client.h"
@ -12,7 +5,6 @@
LoginController::LoginController(ControllerCallback * callback): LoginController::LoginController(ControllerCallback * callback):
HasExited(false) HasExited(false)
{ {
// TODO Auto-generated constructor stub
loginView = new LoginView(); loginView = new LoginView();
loginModel = new LoginModel(); loginModel = new LoginModel();

View File

@ -1,10 +1,3 @@
/*
* LoginController.h
*
* Created on: Jan 24, 2012
* Author: Simon
*/
#ifndef LOGINCONTROLLER_H_ #ifndef LOGINCONTROLLER_H_
#define LOGINCONTROLLER_H_ #define LOGINCONTROLLER_H_

View File

@ -1,16 +1,8 @@
/*
* LoginModel.cpp
*
* Created on: Jan 24, 2012
* Author: Simon
*/
#include "LoginModel.h" #include "LoginModel.h"
LoginModel::LoginModel(): LoginModel::LoginModel():
currentUser(0, "") currentUser(0, "")
{ {
// TODO Auto-generated constructor stub
} }
@ -62,6 +54,5 @@ void LoginModel::notifyStatusChanged()
} }
LoginModel::~LoginModel() { LoginModel::~LoginModel() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* LoginModel.h
*
* Created on: Jan 24, 2012
* Author: Simon
*/
#ifndef LOGINMODEL_H_ #ifndef LOGINMODEL_H_
#define LOGINMODEL_H_ #define LOGINMODEL_H_

View File

@ -1,10 +1,3 @@
/*
* LoginView.cpp
*
* Created on: Jan 24, 2012
* Author: Simon
*/
#include "LoginView.h" #include "LoginView.h"
#include "interface/Button.h" #include "interface/Button.h"

View File

@ -1,10 +1,3 @@
/*
* LoginView.h
*
* Created on: Jan 24, 2012
* Author: Simon
*/
#ifndef LOGINVIEW_H_ #ifndef LOGINVIEW_H_
#define LOGINVIEW_H_ #define LOGINVIEW_H_

View File

@ -1,10 +1,3 @@
/*
* OptionsController.cpp
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#include "OptionsController.h" #include "OptionsController.h"
#include "dialogues/ErrorMessage.h" #include "dialogues/ErrorMessage.h"

View File

@ -1,10 +1,3 @@
/*
* OptionsController.h
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#ifndef OPTIONSCONTROLLER_H_ #ifndef OPTIONSCONTROLLER_H_
#define OPTIONSCONTROLLER_H_ #define OPTIONSCONTROLLER_H_

View File

@ -1,10 +1,3 @@
/*
* OptionsModel.cpp
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#include "simulation/Air.h" #include "simulation/Air.h"
#include "game/GameModel.h" #include "game/GameModel.h"
#include "OptionsModel.h" #include "OptionsModel.h"
@ -140,6 +133,5 @@ void OptionsModel::notifySettingsChanged()
} }
OptionsModel::~OptionsModel() { OptionsModel::~OptionsModel() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* OptionsModel.h
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#ifndef OPTIONSMODEL_H_ #ifndef OPTIONSMODEL_H_
#define OPTIONSMODEL_H_ #define OPTIONSMODEL_H_
#include <vector> #include <vector>

View File

@ -1,10 +1,3 @@
/*
* OptionsView.cpp
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#include "OptionsView.h" #include "OptionsView.h"
#include "Style.h" #include "Style.h"
#include "interface/Button.h" #include "interface/Button.h"
@ -235,6 +228,5 @@ void OptionsView::OnTryExit(ExitMethod method)
OptionsView::~OptionsView() { OptionsView::~OptionsView() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* OptionsView.h
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#ifndef OPTIONSVIEW_H_ #ifndef OPTIONSVIEW_H_
#define OPTIONSVIEW_H_ #define OPTIONSVIEW_H_

View File

@ -1,10 +1,3 @@
/*
* Comment.h
*
* Created on: Feb 11, 2012
* Author: Simon
*/
#ifndef COMMENT_H_ #ifndef COMMENT_H_
#define COMMENT_H_ #define COMMENT_H_

View File

@ -1,10 +1,3 @@
/*
* PreviewController.h
*
* Created on: Jan 21, 2012
* Author: Simon
*/
#ifndef PREVIEWCONTROLLER_H_ #ifndef PREVIEWCONTROLLER_H_
#define PREVIEWCONTROLLER_H_ #define PREVIEWCONTROLLER_H_

View File

@ -1,17 +1,10 @@
/*
* PreviewModel.h
*
* Created on: Jan 21, 2012
* Author: Simon
*/
#ifndef PREVIEWMODEL_H_ #ifndef PREVIEWMODEL_H_
#define PREVIEWMODEL_H_ #define PREVIEWMODEL_H_
#include <vector> #include <vector>
#include <iostream> #include <iostream>
#include <pthread.h> #include <pthread.h>
#undef GetUserName //God dammit microsoft! #undef GetUserName //God dammit microsoft!
#include "PreviewView.h" #include "PreviewView.h"
#include "client/SaveInfo.h" #include "client/SaveInfo.h"
#include "preview/Comment.h" #include "preview/Comment.h"

View File

@ -1,10 +1,3 @@
/*
* PreviewModelException.h
*
* Created on: Apr 14, 2012
* Author: Simon
*/
#ifndef PREVIEWMODELEXCEPTION_H_ #ifndef PREVIEWMODELEXCEPTION_H_
#define PREVIEWMODELEXCEPTION_H_ #define PREVIEWMODELEXCEPTION_H_

View File

@ -1,10 +1,3 @@
/*
* PreviewView.h
*
* Created on: Jan 21, 2012
* Author: Simon
*/
#ifndef PREVIEWVIEW_H_ #ifndef PREVIEWVIEW_H_
#define PREVIEWVIEW_H_ #define PREVIEWVIEW_H_

View File

@ -1,10 +1,3 @@
/*
* RenderController.cpp
*
* Created on: Jan 23, 2012
* Author: Simon
*/
#include "RenderController.h" #include "RenderController.h"
RenderController::RenderController(Renderer * ren, ControllerCallback * callback): RenderController::RenderController(Renderer * ren, ControllerCallback * callback):

View File

@ -1,10 +1,3 @@
/*
* RenderController.h
*
* Created on: Jan 23, 2012
* Author: Simon
*/
#ifndef RENDERCONTROLLER_H_ #ifndef RENDERCONTROLLER_H_
#define RENDERCONTROLLER_H_ #define RENDERCONTROLLER_H_

View File

@ -1,10 +1,3 @@
/*
* RenderModel.cpp
*
* Created on: Jan 23, 2012
* Author: Simon
*/
#include "RenderModel.h" #include "RenderModel.h"
RenderModel::RenderModel(): RenderModel::RenderModel():
@ -139,5 +132,4 @@ void RenderModel::notifyColourChanged()
} }
RenderModel::~RenderModel() { RenderModel::~RenderModel() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* RenderModel.h
*
* Created on: Jan 23, 2012
* Author: Simon
*/
#ifndef RENDERMODEL_H_ #ifndef RENDERMODEL_H_
#define RENDERMODEL_H_ #define RENDERMODEL_H_

View File

@ -1,10 +1,3 @@
/*
* RenderView.cpp
*
* Created on: Jan 23, 2012
* Author: Simon
*/
#include "simulation/ElementGraphics.h" #include "simulation/ElementGraphics.h"
#include "graphics/Graphics.h" #include "graphics/Graphics.h"
#include "graphics/Renderer.h" #include "graphics/Renderer.h"
@ -405,5 +398,4 @@ void RenderView::ToolTip(ui::Component * sender, ui::Point mousePosition, std::s
} }
RenderView::~RenderView() { RenderView::~RenderView() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* RenderView.h
*
* Created on: Jan 23, 2012
* Author: Simon
*/
#ifndef RENDERVIEW_H_ #ifndef RENDERVIEW_H_
#define RENDERVIEW_H_ #define RENDERVIEW_H_

View File

@ -1,10 +1,3 @@
/*
* Thumbnail.cpp
*
* Created on: Apr 3, 2012
* Author: Simon
*/
#include "Thumbnail.h" #include "Thumbnail.h"
Thumbnail::Thumbnail(const Thumbnail & thumb): Thumbnail::Thumbnail(const Thumbnail & thumb):

View File

@ -1,10 +1,3 @@
/*
* Elements.h
*
* Created on: Jan 5, 2012
* Author: Simon
*/
#ifndef ELEMENTS_H_ #ifndef ELEMENTS_H_
#define ELEMENTS_H_ #define ELEMENTS_H_

View File

@ -1,11 +1,3 @@
//
// GOLMenu.h
// The Powder Toy
//
// Created by Simon Robertshaw on 04/06/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef The_Powder_Toy_GOLMenu_h #ifndef The_Powder_Toy_GOLMenu_h
#define The_Powder_Toy_GOLMenu_h #define The_Powder_Toy_GOLMenu_h

View File

@ -1,13 +1,5 @@
// #ifndef MENUSECTION_H_
// MenuSection.h #define MENUSECTION_H_
// The Powder Toy
//
// Created by Simon Robertshaw on 04/06/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef The_Powder_Toy_MenuSection_h
#define The_Powder_Toy_MenuSection_h
struct menu_section struct menu_section
{ {

View File

@ -1,10 +1,3 @@
/*
* Particle.cpp
*
* Created on: Jun 6, 2012
* Author: Simon
*/
#include <cstddef> #include <cstddef>
#include "Particle.h" #include "Particle.h"

View File

@ -1,13 +1,5 @@
// #ifndef PARTICLE_H_
// Particle.h #define PARTICLE_H_
// The Powder Toy
//
// Created by Simon Robertshaw on 04/06/2012.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#ifndef The_Powder_Toy_Particle_h
#define The_Powder_Toy_Particle_h
#include <vector> #include <vector>
#include "StructProperty.h" #include "StructProperty.h"
@ -24,7 +16,7 @@ struct Particle
int tmp2; int tmp2;
unsigned int dcolour; unsigned int dcolour;
/** Returns a list of properties, their type and offset within the structure that can be changed /** Returns a list of properties, their type and offset within the structure that can be changed
by higher-level processes refering to them by name such as Lua or the property tool **/ by higher-level processes referring to them by name such as Lua or the property tool **/
static std::vector<StructProperty> GetProperties(); static std::vector<StructProperty> GetProperties();
}; };

View File

@ -1,10 +1,3 @@
/*
* SaveRenderer.cpp
*
* Created on: Apr 3, 2012
* Author: Simon
*/
#include "SaveRenderer.h" #include "SaveRenderer.h"
#include "client/GameSave.h" #include "client/GameSave.h"
#include "graphics/Graphics.h" #include "graphics/Graphics.h"
@ -178,6 +171,5 @@ Thumbnail * SaveRenderer::Render(unsigned char * saveData, int dataSize, bool de
} }
SaveRenderer::~SaveRenderer() { SaveRenderer::~SaveRenderer() {
// TODO Auto-generated destructor stub
} }

View File

@ -1,10 +1,3 @@
/*
* SaveRenderer.h
*
* Created on: Apr 3, 2012
* Author: Simon
*/
#ifndef SAVERENDERER_H_ #ifndef SAVERENDERER_H_
#define SAVERENDERER_H_ #define SAVERENDERER_H_
#ifdef OGLI #ifdef OGLI

Some files were not shown because too many files have changed in this diff Show More