Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 0948a19

Browse files
author
Alex Shipley
committed
Found that segmentation fault was a result of an old version of PyQT, so updated to newer version and solved. More importantly, added licensing stuff to project. The free version of PyQT is licensed under the GPL, which requires the NT State Editor to also be licensed under the GPL, which it now is. However, the output it produces (state files) are NOT required to be licensed under the GPL, so people will still be able to use the output from the tool for purposes that violate the GPL (i.e. using the files for a closed source game). The NT Engine does NOT use any GPL'd code, so it uses the zlib license, which I chose over the MIT license simply because I know who the original authors are and SFML uses it. So, in short, the entire project is currenty dual-licensed, with the engine being under zlib and the tools being under the GPL though the content those tools produce is not under the GPL.
1 parent 373621f commit 0948a19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2268
-350
lines changed

Engine/BOOST_LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Boost Software License - Version 1.0 - August 17th, 2003
2+
3+
Permission is hereby granted, free of charge, to any person or organization
4+
obtaining a copy of the software and accompanying documentation covered by
5+
this license (the "Software") to use, reproduce, display, distribute,
6+
execute, and transmit the Software, and to prepare derivative works of the
7+
Software, and to permit third-parties to whom the Software is furnished to
8+
do so, all subject to the following:
9+
10+
The copyright notices in the Software and this entire statement, including
11+
the above license grant, this restriction and the following disclaimer,
12+
must be included in all copies of the Software, in whole or in part, and
13+
all derivative works of the Software, unless such copies or derivative
14+
works are solely in the form of machine-executable object code generated by
15+
a source language processor.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23+
DEALINGS IN THE SOFTWARE.

Engine/LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley, Ben Wright, Nathan Rice
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+

Engine/include/AnimData.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley, Ben Wright, Nathan Rice
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_ANIMDATA_H
221
#define NT_ANIMDATA_H
322

Engine/include/AnimSprite.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley, Ben Wright, Nathan Rice
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_ANIMSPRITE_H
221
#define NT_ANIMSPRITE_H
322

Engine/include/Camera.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley, Ben Wright
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_CAMERA_H
221
#define NT_CAMERA_H
322

Engine/include/Config.h

Lines changed: 64 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,64 @@
1-
#ifndef NT_CONFIG_H
2-
#define NT_CONFIG_H
3-
4-
/**
5-
* Retrieves information from game's config file (FPS, screen size,
6-
* starting state) and holds it for application use.
7-
*/
8-
class Config {
9-
public:
10-
/**
11-
* Loads data from config file.
12-
*/
13-
static void Load();
14-
15-
/**
16-
* @return Screen's width.
17-
*/
18-
static int GetScreenWidth();
19-
20-
/**
21-
* @return Screen's height.
22-
*/
23-
static int GetScreenHeight();
24-
25-
/**
26-
* @return Application's FPS.
27-
*/
28-
static float GetFPS();
29-
30-
private:
31-
//@{
32-
/**
33-
* Restrict default constructor and destructor.
34-
*/
35-
Config();
36-
~Config();
37-
//@}
38-
39-
static int m_screenWidth;
40-
static int m_screenHeight;
41-
static float m_FPS;
42-
};
43-
44-
#endif // NT_CONFIG_H
45-
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley, Ben Wright, Nathan Rice
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
20+
#ifndef NT_CONFIG_H
21+
#define NT_CONFIG_H
22+
23+
/**
24+
* Retrieves information from game's config file (FPS, screen size,
25+
* starting state) and holds it for application use.
26+
*/
27+
class Config {
28+
public:
29+
/**
30+
* Loads data from config file.
31+
*/
32+
static void Load();
33+
34+
/**
35+
* @return Screen's width.
36+
*/
37+
static int GetScreenWidth();
38+
39+
/**
40+
* @return Screen's height.
41+
*/
42+
static int GetScreenHeight();
43+
44+
/**
45+
* @return Application's FPS.
46+
*/
47+
static float GetFPS();
48+
49+
private:
50+
//@{
51+
/**
52+
* Restrict default constructor and destructor.
53+
*/
54+
Config();
55+
~Config();
56+
//@}
57+
58+
static int m_screenWidth;
59+
static int m_screenHeight;
60+
static float m_FPS;
61+
};
62+
63+
#endif // NT_CONFIG_H
64+

Engine/include/Direction.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_DIRECTION_H
221
#define NT_DIRECTION_H
322

Engine/include/FontManager.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_FONTMANAGER_H
221
#define NT_FONTMANAGER_H
322

Engine/include/InputHandler.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley, Ben Wright, Nathan Rice
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_INPUT_HANDLER_H
221
#define NT_INPUT_HANDLER_H
322

Engine/include/Lerpable.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/* NT Engine - Copyright (c) 2010-2011 Alex Shipley
2+
3+
This software is provided 'as-is', without any express or implied
4+
warranty. In no event will the authors be held liable for any damages
5+
arising from the use of this software.
6+
7+
Permission is granted to anyone to use this software for any purpose,
8+
including commercial applications, and to alter it and redistribute it
9+
freely, subject to the following restrictions:
10+
11+
1. The origin of this software must not be misrepresented; you must not
12+
claim that you wrote the original software. If you use this software
13+
in a product, an acknowledgment in the product documentation would be
14+
appreciated but is not required.
15+
2. Altered source versions must be plainly marked as such, and must not be
16+
misrepresented as being the original software.
17+
3. This notice may not be removed or altered from any source distribution.
18+
*/
19+
120
#ifndef NT_LERPABLE_H
221
#define NT_LERPABLE_H
322

0 commit comments

Comments
 (0)