D G Turner
c92ff8db33
TEENAGENT: Fix constant naming to comply with Coding Conventions.
...
Adding missing CamelCase k-prefixes.
2012-10-09 09:14:44 +01:00
D G Turner
30dfaa7c34
TEENAGENT: Cleanup TeenagentEngine class.
...
This removes the underscores in various variables as per project
coding standard.
2012-09-26 02:15:25 +01:00
D G Turner
e33f2779c6
TEENAGENT: Cleanup Scene class.
...
This removes the underscores in various variables as per project
coding standard.
2012-09-24 06:05:49 +01:00
D G Turner
c9185c9b11
TEENAGENT: Cleanup Object classes.
...
This removes the underscores in various variables as per project coding
standard.
2012-09-24 02:51:26 +01:00
D G Turner
dc009160bb
TEENAGENT: Add symbols for dialog and message text colors.
2012-08-03 16:28:58 +01:00
D G Turner
95ba78c27d
TEENAGENT: Fix for bug #3428161 "PSP: No music in TeenAgent".
...
This could occur on other platforms too and was a race hazard between
mixer thread startup and music being valid i.e. If the music doesn't
already exist, when the mixer callback is done, this deletes the channel
as idle. Reordered the calls to fix this.
Also, removed unecessary music->start() as this is done by setMusic(n)
on successful load anyway.
2012-08-02 13:00:28 +01:00
D G Turner
520234c200
TEENAGENT: Migrate remaining callback flag variables to symbols.
2012-08-01 19:26:46 +01:00
D G Turner
e11e72d5a7
TEENAGENT: Replace two missed inventory item ids with symbols.
2012-08-01 07:00:29 +01:00
D G Turner
7032dd5a1d
TEENAGENT: Symbolise most of remaining addresses in TeenAgent engine.
...
Also, change address 0 usage to 0x0000 for readability.
2012-07-28 09:05:16 +01:00
D G Turner
b0b99cead0
TEENAGENT: Align some variable names with coding conventions.
2012-07-28 08:27:56 +01:00
D G Turner
be4be025b9
TEENAGENT: Add constant values for screen width and height.
...
It is unlikely these will be changed, but the symbols make the code more
readable.
2012-07-28 07:31:41 +01:00
D G Turner
f137c75e46
TEENAGENT: Migrate deinit functions to constructor/destructors.
...
This removes a number of memory leaks.
2012-07-26 09:18:57 +01:00
D G Turner
af7fca1a7e
TEENAGENT: Split out functions to avoid need for processCallback().
2012-07-23 00:50:19 +01:00
D G Turner
c373ed4ea4
TEENAGENT: Symbol migration associated with remaning display*Message().
...
Have also corrected typo in offset i.e. 0x39b7 was incorrect, it appears
that 0x3ab7 was intended.
2012-07-22 04:55:46 +01:00
D G Turner
7c0b3e0167
TEENAGENT: Improve readability of displayMessage() calls.
2012-07-18 03:29:52 +01:00
D G Turner
567ca1e506
TEENAGENT: Improve readability of displayAsyncMessage() calls.
2012-07-18 02:55:38 +01:00
D G Turner
320f1e3059
TEENAGENT: Improve readability of displayCutsceneMessage() calls.
2012-07-17 14:15:47 +01:00
D G Turner
91b13b30b3
TEENAGENT: Symbol migration associated with displayCredits().
2012-07-17 02:21:40 +01:00
D G Turner
5563abae6d
TEENAGENT: Further symbol migration for processCallback() usage.
2012-07-17 00:04:27 +01:00
D G Turner
d7dcbb2c2d
TEENAGENT: Further symbol migration associated with saveStates.
2012-07-16 15:09:34 +01:00
D G Turner
28c3aa3024
TEENAGENT: Migrate two more dseg regions to symbolic addresses.
2012-07-16 14:06:27 +01:00
D G Turner
9669b73ca8
TEENAGENT: Add symbols for savestate region.
2012-07-13 10:14:38 +01:00
D G Turner
85cf79a57f
TEENAGENT: Minor formatting fixes for consistency.
...
This is mainly ensuring that all hexadecimal usages i.e. addresses are
in lowercase for consistency, but also includes some minor comment
formatting correction.
2012-07-12 21:03:47 +01:00
D G Turner
cffff61081
TEENAGENT: Replace static Dialog functions with normal class.
...
This avoids the need to pass the engine pointer, vm to every function
and removes the need for the functions to be static.
2012-07-11 14:34:09 +01:00
D G Turner
0e6ba29ede
TEENAGENT: Migrate engine to using debugflags.
...
This required some restructuring of the header dependencies.
2012-07-08 00:36:05 +01:00
D G Turner
62c4c09225
TEENAGENT: Enable commented out debug statements.
...
Commented out code is not good practice. Will change these statements
to using debugflags instead in a future commit.
2012-07-07 17:04:42 +01:00
D G Turner
a77a81da51
TEENAGENT: Remove unecessary passing of OSystem to scene Class.
...
This can be accessed via the engine's _system variable instead.
2012-07-07 14:42:26 +01:00
D G Turner
d7b3ca02fe
TEENAGENT: Migrate to using ConfMan singleton.
2012-07-07 14:04:11 +01:00
D G Turner
313502e2ee
TEENAGENT: Remove static Resources class Instance.
...
This is replaced by an engine instance. This should prevent issues
with Return To Launcher and may remove issues with file handles.
2012-07-07 13:46:28 +01:00
Johannes Schickel
f3c66a191f
TEENAGENT: Get rid of casts on OSystem::copyRectToScreen calls.
2012-06-16 02:39:00 +02:00
Johannes Schickel
8a7f3e69ff
TEENAGENT: Improve code formatting.
...
I used astyle and fixed some incorrect changes from it manually.
2011-10-23 02:07:23 +02:00
Christoph Mallon
a5675c3dbe
TEENAGENT: Pass streams as references.
2011-08-07 15:19:08 +02:00
Julien
5aa1877bef
TEENAGENT: Allocate large buffers on the heap instead of the stack
2011-06-23 15:11:37 +08:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn
477d6233c3
ENGINES: Change 2nd param of Engine::saveGameState to Common::String
2011-06-02 18:31:59 +02:00
Max Horn
05a7b160b3
TEEN: Use only one RandomSource and give that one a name.
...
This change ensures that only RandomSource is used which also is
registered with the event recorder. Moreover, it gets rid of a static
RandomSource instance inside Actor::renderIdle.
2011-05-17 12:17:26 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
f66009c654
TEENAGENT: Adapt to setPalette RGBA->RGB change.
...
This change has not been tested.
2011-02-14 17:08:33 +01:00
Max Horn
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
2d1c8a3533
ALL: Fix whitespaces / indention
...
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
David Turner
c11fdabab9
TEENAGENT: Fix Memory Leaks.
...
svn-id: r55672
2011-01-31 07:44:40 +00:00
Max Horn
059944e59c
COMMON: Push #include audiocd.h in system.h out to .cpp files
...
svn-id: r54148
2010-11-08 23:07:42 +00:00
Max Horn
82e473bc3b
BACKENDS: Partial merge of gsoc2010-opengl: Audio CD changes only
...
This commit contains the AudioCDManager changes from the gsoc2010-opengl
branch. The other changes in that branch are restricted to the backends
directory only (plus configure).
The Nintendo DS and Dreamcast ports still need to be ported over to
the new Audio CD system, but that should be fairly easy to do.
svn-id: r54147
2010-11-08 22:53:36 +00:00
Max Horn
e27b05ef35
COMMON: Rename String::printf() to String::format()
...
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.
The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.
svn-id: r54004
2010-11-01 16:02:28 +00:00
Alejandro Marzini
fb4086cadb
Merged from trunk, from Rev 50841 to HEAD
...
svn-id: r51495
2010-07-30 05:28:09 +00:00
Max Horn
1d4c82885d
DEBUGGER: Simplify how our console debugger works / is used
...
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
document it.
* Add more doxygen comments
* Cleanup
svn-id: r50963
2010-07-17 18:38:42 +00:00
Alejandro Marzini
e1ef3cd9fc
Renamed getAudioCD to getAudioCDManager.
...
svn-id: r49678
2010-06-15 04:13:12 +00:00
Alejandro Marzini
e991cd8c53
- Revised abstract AudioCDManager.
...
- Removed AudioCDManager Singleton, and changed code for using AudioCDManager in OSystem.
- Added initialization code for new AudioCDManager in BaseBackend and OSystem_SDL.
svn-id: r49548
2010-06-09 20:09:57 +00:00