379 Commits

Author SHA1 Message Date
richiesams
fa578497b3 ZVISION: Use Surface::getPixels() rather than getBasePtr(0, 0)
Prevents unnecessary algebra
2013-09-24 13:59:39 +02:00
richiesams
4288c4fa0e ZVISION: Remove unnecessary pixel format switching from video code
This is part of a series of commits converting all game assets to RBG 565 from
RBG 555. The argument is that certain backends do not support RGB 555. AVI
videos are already in RGB 565, so we just need to remove the code that switched
the pixelFormat during videos.
2013-09-24 13:59:38 +02:00
richiesams
cdc4842181 ZVISION: Convert RLF animations to RBG 565
This is part of a series of commits converting all game assets to RBG 565 from
RBG 555. The argument is that certain backends do not support RGB 555.
2013-09-24 13:59:38 +02:00
richiesams
f146a0209f ZVISION: Convert image rendering to RBG 565
This is part of a series of commits converting all game assets to RBG 565 from
RBG 555. The argument is that certain backends do not support RGB 555.
2013-09-24 13:59:38 +02:00
richiesams
07770eeafb ZVISION: Convert cursors to RBG 565
This is part of a series of commits converting all game assets to RBG 565 from
RBG 555. The argument is that certain backends do not support RGB 555.
2013-09-24 13:59:38 +02:00
richiesams
94378d0644 ZVISION: Force comparison to be between signed ints and ensure CLIP happens on a signed int 2013-09-24 13:59:38 +02:00
richiesams
0271a2c59d ZVISION: Transpose is done in RenderManager::readImageToSurface(), so remove it from mutateImage 2013-09-24 13:59:38 +02:00
richiesams
c15454d7d4 ZVISION: Keep a Graphics::Surface of the current background instead of re-reading the file each time
This is both more efficient and is part of the process of converting the entire game to RBG 565
2013-09-24 13:59:38 +02:00
richiesams
a81c9a52a3 ZVISION: Fix LeverControl 'mirrored' support 2013-09-24 13:59:38 +02:00
richiesams
bb77333d4f ZVISION: Create console method for parsing ALL .scr files
Useful for putting a breakpoint at certain ResultActions/Controls to
test out different instances of them.
2013-09-24 13:59:38 +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
f1f36e7c9d ZVISION: Add LeverControl to scr file parsing 2013-08-28 16:44:41 -05:00
richiesams
952fb83793 ZVISION: Fix: Change infndef to correct constant 2013-08-28 16:44:41 -05:00
richiesams
ce9e9a55c6 ZVISION: Fix: Store what type of animation file is used 2013-08-28 16:44:40 -05:00
richiesams
7d255c3d80 ZVISION: Fix: Signal a cursor change 2013-08-28 16:44:40 -05:00
richiesams
a1a70170d4 ZVISION: Remove RlfAnimation::getPreviousFrame()
I realized that RlfAnimations don't use B-frames, therefore, can not easily go backwards.
2013-08-28 16:44:39 -05:00
richiesams
945982c857 ZVISION: Add support for animation 'mirroring'
If an animation is 'mirrored', it doesn't have B-frames, only I-frames. However the animations are built
so the last half of the animation is the reverse of the first half
2013-08-28 16:44:39 -05:00
richiesams
3e6144970e ZVISION: Implement avi frame seeking 2013-08-28 16:44:28 -05:00
richiesams
ab18d20ead ZVISION: Fix the quadrant numbers in angle calculations
Because y increases as you go down, not up
2013-08-28 16:44:27 -05:00
richiesams
3a9b384114 ZVISION: Round to int *after* converting to degrees 2013-08-28 16:44:26 -05:00
richiesams
b317ea45fe ZVISION: Allow a angle buffer zone on *both* sides of the actual angle 2013-08-28 16:44:26 -05:00
richiesams
f60b054b49 ZVISION: Fix comment spacing 2013-08-28 16:44:25 -05:00
richiesams
da3f137b6b ZVISION: sscanf to ints before storing them in Rect coords 2013-08-28 16:44:25 -05:00
richiesams
610eb11824 ZVISION: Prevent variable shadowing 2013-08-28 16:44:24 -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
e3b08793dd ZVISION: Add ScriptManager mouse event handlers
This allows the main engine to pass mouse events to Controls
2013-08-28 16:44:23 -05:00
richiesams
a6b2bb7581 ZVISION: Remove ScriptManager::_activeNodes and change all iterators to iterate over _activeControls
We also change _activeControls to a List instead of a HashMap because a List should have
slightly better iteration time.
2013-08-28 16:44:23 -05:00
richiesams
b667002124 ZVISION: Update ScriptManager::enableControl()/disableControl() to fit new Control syntax 2013-08-28 16:44:22 -05:00
richiesams
a1d11054b5 ZVISION: Fix signed/unsigned mismatch 2013-08-28 16:44:22 -05:00
richiesams
e32f6f7e38 ZVISION: Remove extraneous semicolon 2013-08-28 16:44:21 -05:00
richiesams
7fb024c7fc ZVISION: Change PushToggleControl to comply with new Control base class 2013-08-28 16:44:21 -05:00
richiesams
4d344cb5a8 ZVISION: Change LeverControl to comply with the new Control base class 2013-08-28 16:44:20 -05:00
richiesams
3263ab7390 ZVISION: Modify TimerNode to use Control base class 2013-08-28 16:44:20 -05:00
richiesams
93bc3570ea ZVISION: Create the default implementation for Control::enable()/disable() 2013-08-28 16:44:19 -05:00
richiesams
52af1f7f10 ZVISION: Bake ActionNode and MouseEvent into Control
This makes memory management a lot easier as well as removes the need for
multiple lists that point to the same objects. However, there will be quite a few Controls
that don't need all the functionality of ActionNode and MouseEvent, so the default
implementations are No Op.
2013-08-28 16:44:19 -05:00
richiesams
5e1215837a ZVISION: Fixed signed/unsigned mismatch 2013-08-28 16:44:18 -05:00
richiesams
ff97bb2ead ZVISION: Move PushToggleControl and LeverControl to their own files 2013-08-24 01:47:12 -05:00
richiesams
9d8243245c ZVISION: Fix signed/unsigned mismatch 2013-08-24 01:11:25 -05:00
richiesams
5ff032c27d ZVISION: Cast completeFrame and frameNumber to int so their difference can go negative 2013-08-24 01:11:10 -05:00
richiesams
af762dc417 ZVISION: Fix signed/unsigned mismatch 2013-08-24 00:32:33 -05:00
richiesams
7d48a3e4b1 ZVISION: Partially implement LeverControl 2013-08-24 00:25:55 -05:00
richiesams
a596d1241c ZVISION: Add console method to dump all .lev files 2013-08-24 00:25:21 -05:00
richiesams
a9db1e1712 ZVISION: Add note about _activeNodes 2013-08-24 00:25:01 -05:00
richiesams
fc5727c522 ZVISION: Fix memory leak
We no longer use SharedPtr
2013-08-24 00:24:43 -05:00
richiesams
0ed7df9a36 ZVISION: Add TODO's about the verbosity of the frame decoding overflow warning 2013-08-24 00:23:44 -05:00
richiesams
d2df3eb24e ZVISION: Check if we can use getNextFrame() or getPreviousFrame() before using getFrameData() 2013-08-24 00:23:43 -05:00
richiesams
c6242e7134 ZVISION: Fix signed/unsigned mismatch 2013-08-24 00:23:43 -05:00
richiesams
6610ca1b82 ZVISION: Fix error: decrementing instead of incrementing 2013-08-24 00:23:42 -05:00
richiesams
aed38867ce ZVISION: Change variable name to match its purpose 2013-08-24 00:23:42 -05:00
richiesams
0da3d3e5eb ZVISION: Convert _mouseEvents to pointers since MouseEvent is now abstract 2013-08-24 00:23:41 -05:00