Ori Avtalion
aa0f307e06
ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
...
Silences the clang warning:
static data member specialization of '_singleton' must
originally be declared in namespace 'Common'; accepted as a C++0x
extension [-Wc++0x-extensions]
Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.
Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Matthew Hoops
9539017ee3
ALL: initialise -> initialize
2011-05-25 11:17:11 -04:00
Max Horn
3931e1dc50
SWORD25: Avoid including lua headers in other headers
2011-05-23 19:12:25 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
bf4dc80419
SWORD25: Reduce code duplication; formatting
2011-03-21 14:36:25 +01:00
Filippos Karapetis
42670975ac
SWORD25: Removed a lot of debug/unimplemented/unused functions
...
svn-id: r55600
2011-01-28 20:52:52 +00:00
Filippos Karapetis
6dc0999c6d
SWORD25: Cleanup
...
svn-id: r55501
2011-01-24 14:00:55 +00:00
Filippos Karapetis
1f1cb1f140
SWORD25: Removed the logErrorLn and logWarningLn wrappers
...
svn-id: r55488
2011-01-24 00:03:09 +00:00
David Turner
2c2ef3973a
SWORD25: Fix GCC Compilation Warnings.
...
svn-id: r55482
2011-01-23 20:51:16 +00:00
Filippos Karapetis
3d15871ee2
SWORD25: Removed several unused methods of the Vertex class, and made a subclass of the Common::Point class
...
svn-id: r55478
2011-01-23 19:06:35 +00:00
Filippos Karapetis
b17d4ada86
SWORD25: Removed several unused methods from the Polygon class
...
svn-id: r55477
2011-01-23 19:02:36 +00:00
Filippos Karapetis
1250785822
SWORD25: Replaced BS_ASSERT() with assert()
...
svn-id: r55464
2011-01-23 15:01:24 +00:00
Filippos Karapetis
00a0f8d15d
SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
...
svn-id: r55462
2011-01-23 14:49:50 +00:00
Max Horn
b3ba5f6ec5
SWORD25: Fix warning about uninitialized DijkstraNode::parentIter
...
svn-id: r54551
2010-11-28 21:33:27 +00:00
Max Horn
abe1959d36
COMMON: Simplify DECLARE_SINGLETON macro
...
This makes it possible to write
DECLARE_SINGLETON(foo);
instead of
DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.
svn-id: r54258
2010-11-16 08:23:13 +00:00
Max Horn
e761f76653
SWORD25: Get rid of most of the 'kernel service/superclass' code
...
svn-id: r53835
2010-10-25 22:41:25 +00:00
Max Horn
2da4469686
SWORD25: Remove outdated comments
...
svn-id: r53752
2010-10-24 01:29:59 +00:00
Eugene Sandulenko
6629efc676
SWORD25: Enforced code formatting rules in rest of the engine
...
svn-id: r53626
2010-10-19 21:03:33 +00:00
Eugene Sandulenko
f3becaddf1
SWORD25: Enforce code naming conventions in gfx/image/imageloader*
...
svn-id: r53623
2010-10-19 20:52:47 +00:00
Eugene Sandulenko
d94435eebd
SWORD25: Enforce code naming conventions in gfx/graphicengine*
...
svn-id: r53621
2010-10-19 20:51:21 +00:00
Max Horn
88bca8e13d
SWORD25: Optimize ReverseArray, move it to only place it is used
...
svn-id: r53606
2010-10-19 09:43:31 +00:00
Paul Gilbert
3b29bda9a1
SWORD25: Added operator= to Polygon class
...
This fixes a corruption where vertice arrays were being copied directly and destroyed prematurely
svn-id: r53603
2010-10-19 09:23:20 +00:00
Eugene Sandulenko
3feac393b0
SWORD25: Renamed Lua .c files to .cpp and make it compilable
...
svn-id: r53568
2010-10-18 17:12:00 +00:00
Max Horn
550073ee04
SWORD25: Do not use Kernel::GetService directly anymore
...
svn-id: r53477
2010-10-15 12:18:19 +00:00
Johannes Schickel
bc2781fdb3
SWORD25: Semi-colon cleanup.
...
svn-id: r53446
2010-10-13 20:04:50 +00:00
Max Horn
9755c63292
SWORD25: Invoke parent's class copy constructor
...
svn-id: r53432
2010-10-13 15:41:55 +00:00
Max Horn
9b4d41d2d2
SWORD25: Convert object registries to singletons
...
svn-id: r53431
2010-10-13 15:41:34 +00:00
Max Horn
8f4f0d16fc
SWORD25: Renamed getInstance() -> instance()
...
svn-id: r53430
2010-10-13 15:41:00 +00:00
Filippos Karapetis
17f9913a24
SWORD25: Oops, atan2() takes two arguments
...
svn-id: r53429
2010-10-13 15:06:14 +00:00
Filippos Karapetis
a3d3e94a8d
SWORD25: Extended Mac OSX compilation fix for sqrtf and atan2f
...
svn-id: r53426
2010-10-13 14:40:32 +00:00
Filippos Karapetis
090540504d
SWORD25: Hopefully fixed compilation under Mac OSX, Solaris and mingw32
...
Taken from sound/softsynth/mt32/tables.cpp lines 28-41 (thanks LordHoto)
svn-id: r53425
2010-10-13 14:33:47 +00:00
Eugene Sandulenko
063cb5d84c
SWORD25: Enforced code naming conventions in math/*
...
svn-id: r53392
2010-10-13 00:09:32 +00:00
Eugene Sandulenko
54ccc8f4c9
SWORD25: Enforced code naming conventions in script/*
...
svn-id: r53391
2010-10-13 00:08:28 +00:00
Eugene Sandulenko
06bce68860
SWORD25: Comply to the code conventions for several classes
...
svn-id: r53310
2010-10-12 23:32:32 +00:00
Eugene Sandulenko
086f5961b6
SWORD25: unsigned int -> uint
...
svn-id: r53309
2010-10-12 23:30:00 +00:00
Paul Gilbert
edfd2e6aca
SWORD25: Corrected the definition of infinity constant
...
Previous string of ~(-1) was actually evaluating to 0, which was screwing up the path-finding algorithms
svn-id: r53290
2010-10-12 23:18:16 +00:00
Paul Gilbert
11219f12a6
SWORD25: Bugfix to walk path detection
...
svn-id: r53289
2010-10-12 23:17:58 +00:00
Paul Gilbert
1d16dfd281
SWORD25: Refactored engine to remove BS_Rect class
...
svn-id: r53265
2010-10-12 23:09:12 +00:00
Eugene Sandulenko
b01994a53b
SWORD25: removed BS_ prefix from rest of the classes.
...
The things which are intentionally left with the prefix:
BS_LOG, BS_ASSERT, BS_Rect, BS_String.
svn-id: r53261
2010-10-12 22:59:01 +00:00
Eugene Sandulenko
be44216e5c
SWORD25: eliminated BS_ prefix in all but kernel/
...
svn-id: r53259
2010-10-12 22:55:59 +00:00
Eugene Sandulenko
485ff15d23
SWORD25: Mass-eliminating of BS_ prefix in fmv/ and gfx/
...
svn-id: r53258
2010-10-12 22:53:49 +00:00
Eugene Sandulenko
a1d22a063b
SWORD25: Fix warnings
...
svn-id: r53254
2010-10-12 22:50:28 +00:00
Eugene Sandulenko
031a2fc88e
SWORD25: Final linking fixes. Now it links!
...
svn-id: r53234
2010-10-12 22:42:44 +00:00
Eugene Sandulenko
ab85540a1b
SWORD25: More compilation fixes
...
Now almost everything compiles fine. Several files were tricked
and there are references to tinyxml.h and of course fmod and agg.
OpenGL gfx renderer removed from the project, we need to create
our own from the scratch.
svn-id: r53224
2010-10-12 22:37:13 +00:00
Eugene Sandulenko
47904bc7b2
SWORD25: Mass-astyle.
...
svn-id: r53222
2010-10-12 22:35:55 +00:00
Eugene Sandulenko
bf53914c2a
SWORD25: Fix compilation and several warnings
...
svn-id: r53215
2010-10-12 22:27:32 +00:00
Paul Gilbert
6b755174bd
SWORD25: Fixed some potentially uninitialised variable warnings
...
svn-id: r53212
2010-10-12 22:24:58 +00:00
Paul Gilbert
ccba0891fd
SWORD25: Converted further files from old hashmap.h to Common::HashMap
...
This commit includes a class pointer hash function added in objectregistry.h that should be double-checked to see if it's correct.
svn-id: r53211
2010-10-12 22:24:37 +00:00
Paul Gilbert
7bc8cd284a
SWORD25: Fixed string comparisons against pointers rather than contents
...
svn-id: r53210
2010-10-12 22:24:03 +00:00
Paul Gilbert
2006e564a1
SWORD25: Moved the Lua library into it's own namespace
...
Previously with some of the files I was leaving the #include references to the library inside the global namespace. However, since the engine itself is now inside a namespace, I had to do a lot of changes, such as lua_State to ::lua_State. This way is cleaner, and I just need to add a 'using namespace Lua' where needed.
svn-id: r53198
2010-10-12 22:18:35 +00:00