Commit Graph

57835 Commits

Author SHA1 Message Date
richiesams
6564dc0444 ZVISION: Rename inner variable to prevent variable shadowing 2013-08-05 11:55:20 -05:00
richiesams
1b05d2fd7d ZVISION: Add linking for clock.o 2013-08-05 11:54:43 -05:00
richiesams
623b2625ff ZVISION: Properly end the AD table 2013-08-05 11:53:58 -05:00
richiesams
9036b8d3d2 ZVISION: Create ZVisionGameId entry None
This is used to end the AD table
2013-08-05 11:53:57 -05:00
richiesams
9147636003 ZVISION: Allow _deltaTime to go negative so it can be clamped to zero properly 2013-08-05 11:51:16 -05:00
richiesams
3723a0bad3 ZVISION: sscanf to a uint first instead of directly to a bool 2013-08-05 11:50:39 -05:00
richiesams
9dec0adcdc ZVISION: Conform to gcc template spacing requirements 2013-08-05 11:49:47 -05:00
richiesams
3f5cf50049 ZVISION: Use videoDecoder.getTimeToNextFrame() to calculate the frame delay 2013-08-05 10:27:00 -05:00
richiesams
cefb0253ae ZVISION: Change _pausedTime to be a reference to when time was paused, instead of accumulation of time 2013-08-05 10:26:23 -05:00
richiesams
65b5a2797b ZVISION: Fix index out of range error 2013-08-05 00:18:01 -05:00
richiesams
6515e2d31b ZVISION: Add ActionMusic 2013-08-05 00:14:20 -05:00
richiesams
20c8920929 ZVISION: Pass the scr fileName as a const reference 2013-08-05 00:05:26 -05:00
richiesams
4b0015b8e9 ZVISION: Check if a key exists before returning _globalState value.
operator[] creates a key value pair if it doesn't exist. So blindly returning a value without checking if the
key exists could result in undefined behavior, depening on what the value is initialized to in its constructor
2013-08-05 00:05:25 -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
c4dc3989a7 ZVISION: Make the return from makeRawZorkStream more specific 2013-08-04 23:53:40 -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
a86a0832e0 ZVISION: Create console method for dumping a file by name 2013-08-04 23:52:21 -05:00
richiesams
0a8f57721b ZVISION: Create Clock class to handle deltaTime while pausing and unpausing the game 2013-08-04 23:01:42 -05:00
richiesams
c828074df9 ZVISION: Remove extraneous comments 2013-08-04 13:33:12 -05:00
richiesams
3fd5a8ab5a ZVISION: Offset the RenderTable index by the normalized coords, not the subRect coords 2013-08-04 13:33:11 -05:00
richiesams
d89a55d3de ZVISION: Create class definitions for mutliple ResultAction children 2013-08-04 13:33:11 -05:00
richiesams
32b3363acd ZVISION: Add ActionSetScreen 2013-08-04 13:33:10 -05:00
richiesams
8bbc260b86 ZVISION: Create RenderManager method to set the current background image 2013-08-04 13:33:10 -05:00
richiesams
11118262e4 ZVISION: Add logic to check _referenceTable Puzzles every time a globalState is changed 2013-08-04 13:33:09 -05:00
richiesams
9e996c4fec ZVISION: Convert _activeNodes and _activeControls to Lists of SharedPtr 2013-08-04 13:33:08 -05:00
richiesams
47f10fe784 ZVISION: Overload renderImageToScreen to handle fileNames and ReadStreams 2013-08-04 13:33:08 -05:00
richiesams
ebe83ed390 ZVISION: Make panorama and tilt control generate the RenderTable after setting all the settings 2013-08-04 13:33:07 -05:00
richiesams
5ef19407b4 ZVISION: Fix typo in panarama and tilt control parsing 2013-08-04 13:33:07 -05:00
richiesams
8d5e92b935 ZVISION: Add console cmd for changing location 2013-08-04 13:33:06 -05:00
richiesams
87be3180c7 ZVISION: Fix sscanf formatting errors 2013-08-04 13:33:05 -05:00
richiesams
44ee28c13f ZVISION: Remove ResultAction clone member function
Puzzle now uses smart pointers so clone is no longer necessary
2013-08-04 13:33:05 -05:00
richiesams
93e4f4dbf7 ZVISION: Sort using iterators instead of the actual elements
Also convert the argument to a reference instead of a pointer
2013-08-04 13:33:04 -05:00
richiesams
2faaf8488b ZVISION: Convert ResultAction pointers to SharePtr
This gets rid of the need for specific destruction as well as making the copy swap
operations in the ScriptManger _referenceTable more efficient
2013-08-04 13:33:04 -05:00
richiesams
cf45312016 ZVISION: Fix unsigned/signed mismatch warning 2013-08-04 13:33:03 -05:00
richiesams
99ecc80e86 ZVISION: Initialize iterator 2013-08-04 13:33:02 -05:00
richiesams
3df425004d ZVISION: Remove superfluous comma 2013-08-04 13:33:01 -05:00
richiesams
4729641cf9 ZVISION: Fix typo in format string 2013-08-04 13:33:01 -05:00
richiesams
8e3ffdece8 ZVISION: Initialize _needsScreenUpdate in RenderManager 2013-08-04 13:33:00 -05:00
richiesams
d43e1e9741 ZVISION: Add filename parsing for ActionPlayAnimation 2013-08-04 13:33:00 -05:00
richiesams
87f2e9a894 ZVISION: Update module.mk with current obj 2013-08-04 13:32:59 -05:00
richiesams
e170be4ea5 ZVISION: Remove redundant class qualifier 2013-08-04 13:32:59 -05:00
richiesams
8ec0a90611 ZVISION: Convert _blockSize to an anonymous enum 2013-08-04 13:32:58 -05:00
richiesams
903e21b8af ZVISION: Initialize the iterator 2013-08-04 13:32:57 -05:00
richiesams
d06083aa96 ZVISION: Convert sscanf formats to follow new int lengths 2013-08-04 13:32:57 -05:00
richiesams
5e442c363e ZVISION: Convert String pointers to const references 2013-08-04 13:32:56 -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
Filippos Karapetis
89d8496dba ZVISION: Add detection entry and directories for ZGI 2013-08-04 13:32:55 -05:00
richiesams
f39e1fdc43 ZVISION: Move CriteriaOperator, Criteria, and StateFlag inside the Puzzle class 2013-08-04 13:32:54 -05:00
richiesams
f975fbe521 ZVISION: Move Puzzle logic into a .cpp file 2013-08-04 13:32:54 -05:00