Commit Graph

51 Commits

Author SHA1 Message Date
Marisa-Chan
f46d63d35c ZVISION: Implement engine-wide method for selecting new audio ID. 2013-11-01 16:44:44 +07:00
Marisa-Chan
25834faf07 ZVISION: Style modifing by astyle. 2013-10-20 18:39:06 +00:00
Marisa-Chan
f1c6b58a94 ZVISION: Select needed workingWindow for ZGI and Nemesis. 2013-10-18 19:48:57 +00:00
RichieSams
bad28dc158 ZVISION: Standardize includes order and format
Format is:
common/scummsys.h    (Only if a .cpp file)

header file for this file (Only if a .cpp file)

zengine includes

other includes, grouped by module
2013-10-02 09:10:00 -05:00
RichieSams
1bdcae7f18 ZVISION: Rename zvision.h inclusion guard to be consistent with the other files 2013-10-02 09:09:59 -05:00
RichieSams
72ae75e64a ZVISION: Clean up zvision.h 2013-10-02 09:09:49 -05:00
RichieSams
2d9c9e8c7f ZVISION: Remove unused animation functions 2013-09-21 13:37:18 -05:00
RichieSams
c312b147fa ZVISION: Create an instance of StringManager 2013-09-15 15:01:01 -05:00
RichieSams
8ba295d710 ZVISION: Add key press support to the main event loop 2013-09-15 15:00:42 -05:00
RichieSams
b50afa2b15 ZVISION: Remove unused function 2013-09-15 15:00:40 -05:00
richiesams
7ff45447ad ZVISION: Create an instance of SaveManager 2013-09-04 00:18:05 -05:00
richiesams
235620750a ZVISION: Create methods for generating save file names 2013-09-04 00:16:46 -05:00
richiesams
9ea91f5c9c ZVISION: Convert ZVision singleton accessors to be inline 2013-09-03 23:44:26 -05:00
richiesams
f1bd8de21d ZVISION: Overload ZVision::playAnimation to support general video files 2013-09-24 13:59:40 +02:00
richiesams
f3514534ce ZVISION: Increase background rotation speed
This could probably still go higher. The DOS version is *very* sensitive, too sensitive.
But this is still a bit slow.
2013-08-28 16:44:42 -05:00
richiesams
84c645968c ZVISION: Remove ZVision::_mousEvents and all associated functions
Instead, pass all mouse events to ScriptManager
2013-08-28 16:44:24 -05:00
richiesams
0da3d3e5eb ZVISION: Convert _mouseEvents to pointers since MouseEvent is now abstract 2013-08-24 00:23:41 -05:00
richiesams
f759584d3b ZVISION: Make ZVision::_workingWindow and ZVision::_pixelFormat public 2013-08-23 23:50:33 -05:00
richiesams
6e427ebef8 ZVISION: Create method to play RlfAnimations 2013-08-20 11:41:36 -05:00
richiesams
1f653f9a34 ZVISION: Allow MouseEvents to be unregistered 2013-08-18 19:53:00 -05:00
richiesams
4e827b4dda ZVISION: Add documentation 2013-08-14 12:04:13 -05:00
richiesams
54f16f2539 ZVISION: Create the concept of a working window
The working window is a Rect centered inside the actual window edges. All in-game
coordinates are in the working window coordinate system. Also, all images in-game
are clipped to the edges of the working window.
2013-08-14 11:20:04 -05:00
richiesams
269bed7c7d ZVISION: Implement mouse event handling 2013-08-11 15:10:52 -05:00
richiesams
416cde1358 ZVISION: Change video code to support arbitrary scaling and whether the video can be skipped 2013-08-10 17:14:00 -05:00
richiesams
1b277d34ac ZVISION: Add class to manage cursors 2013-08-09 18:33:15 -05:00
richiesams
06e6cb5d1f ZVISION: Create method for cycling through all the cursors so as to identify them more easily 2013-08-09 14:51:18 -05:00
richiesams
946f98b34d ZVISION: Fix frame delay calculation being reversed. Also convert to int to ensure proper 0 clamping 2013-08-05 19:07:55 -05:00
richiesams
1d694dcb81 ZVISION: Add support for engine pausing from higher up (GMM, phone call, etc.) 2013-08-05 00:05:25 -05:00
richiesams
ec7036469c ZVISION: Make _clock a member variable instead of a pointer to the heap 2013-08-05 00:05:14 -05:00
richiesams
7b9858d6b4 ZVISION: Make video code blocking.
The script system requires that all ResultAction::execute() block until they finish. The video system *was* 'asyncronous'
in that you would just start a video and then run() would finish processing it. This code forces the video to complely finish
before playVideo returns. The Clock object is used to keep track of deltaTime while the video is playing.
2013-08-04 23:52:31 -05:00
richiesams
f1135292d0 ZVISION: Optimize integer type usages
The general thought is int is faster than int16 or byte. So if you can afford the
space, use it over int16 or byte. Also, only use int32 when you specifically need
the 32 bits.
2013-08-04 13:32:55 -05:00
richiesams
ed44907309 ZVISION: Move rendering logic from ZVision class to RenderManager class 2013-08-04 13:32:34 -05:00
richiesams
4bd95987d2 ZVISION: Convert old code to use RenderManager 2013-08-04 13:32:31 -05:00
richiesams
a30f49b556 ZVISION: Add a game type enum to detection
This is needed for sound file differentiation
2013-08-04 13:32:19 -05:00
richiesams
8d2bef2936 ZVISION: Create console command for loading sounds 2013-08-04 13:32:16 -05:00
richiesams
ae84e9508e ZVISION: Add 2x scaling to videos 2013-08-04 13:32:15 -05:00
richiesams
d672c2c440 ZVISION: Remove unused methods from ZVision class 2013-08-04 13:32:12 -05:00
richiesams
4e55d7ba94 ZVISION: Clean up includes 2013-08-04 13:32:10 -05:00
richiesams
76b2aa33ca ZVISION: Create/refactor methods for playing video.
The pixel format for videos is not the same as for the rest of the game.
(Game: RGB 555, Video: RGB 565)
2013-08-04 13:32:08 -05:00
richiesams
afbcca2187 ZVISION: Move engine width, height, and pixelFormat to const member variables 2013-08-04 13:32:08 -05:00
richiesams
399e512be2 ZVISION: Update renderImageToScreen to handle TGZ image files 2013-08-04 13:32:05 -05:00
richiesams
46865dc394 ZVISION: Create renderImageToScreen method and add a console command for it 2013-08-04 13:32:01 -05:00
richiesams
4209236994 ZVISION: Create debug console and apply console logic to main loop 2013-08-04 13:32:01 -05:00
richiesams
16cc970c9e ZVISION: Normalize remaining CRLF to LF for the remote 2013-08-04 13:31:58 -05:00
richiesams
187c119e93 ZVISION: Create ResultAction 's for Add and Random.
Create class templates for PlayAnimation, PreloadAnimation, and Attenuate
2013-08-04 13:31:57 -05:00
richiesams
1710468121 ZVISION: Fix includes to use new underscore names 2013-08-04 13:31:56 -05:00
richiesams
8d9f90bf12 ZVISION: Create ScriptManager accessor for ZVision
Having the ScriptManager as a member variable forced it to be const,
which prevented any non cont methods to be used. Thus, ScriptManager is
created on the heap and disposed after use.
2013-08-04 13:31:54 -05:00
richiesams
ac96b943fa ZVISION: Create an instance of ScriptManager inside ZVision 2013-08-04 13:31:51 -05:00
richiesams
3283176f6d ZVISION: Move initialization code from run() and into its own method 2013-08-04 13:31:48 -05:00
richiesams
160d6256f2 ZVISION: Create skeleton engine and move code away from Engine::Run
The goal is to have Engine::Run as clean as possible. Aka mostly method
calls.
2013-08-04 13:31:43 -05:00