401 Commits

Author SHA1 Message Date
richiesams
5d86eb4a4a ZVISION: Change ActionPlayAnimation::_loop refer to a count rather than a boolean
_loopCount refers to the number of times an animation should be played, where 0
corresponds to infinite.
2013-09-03 01:23:17 -05:00
richiesams
b3a3274616 ZVISION: Remove unnecessary file.open()
It's done inside readImageToSurface() and it no longer needs
to be on the heap
2013-09-03 00:39:39 -05:00
richiesams
efb0495758 ZVISION: Fix signed/unsigned mismatch 2013-09-03 00:34:01 -05:00
richiesams
98dc015dc1 ZVISION: Free the _currentBackground Surface in RenderManager destructor 2013-09-03 00:32:12 -05:00
richiesams
4d86061b57 ZVISION: Cleanup all used memory in RLF animations 2013-09-03 00:31:44 -05:00
richiesams
34dcea106a ZVISION: Cleanup _activeControls in ScriptManager destructor 2013-09-03 00:27:03 -05:00
richiesams
78d5a41cd0 ZVISION: Call Surface::free() in the cursor destructor 2013-09-03 00:26:13 -05:00
richiesams
c3fcff9612 ZVISION: Move TimerNode to it's own file 2013-09-24 13:59:40 +02:00
richiesams
f1bd8de21d ZVISION: Overload ZVision::playAnimation to support general video files 2013-09-24 13:59:40 +02:00
richiesams
2ad40edd47 ZVISION: Limit tilt movement to the size of the image
// TODO: Remove image wrapping logic for the vertical direction since this can never happen now
2013-09-24 13:59:40 +02:00
richiesams
07fdcdf312 ZVISION: Only do return pathing after the mouse is captured 2013-09-24 13:59:40 +02:00
richiesams
04bf6f79e9 ZVISION: Implement return pathing for LeverControls 2013-09-24 13:59:40 +02:00
richiesams
d2d3755009 ZVISION: Fix tilt render table comment 2013-09-24 13:59:40 +02:00
richiesams
1ad594bd30 ZVISION: Add default values for tilt options 2013-09-24 13:59:39 +02:00
richiesams
97b0d5988a ZVISION: Fix how LeverControl return routes are parsed 2013-09-24 13:59:39 +02:00
richiesams
94f350b154 ZVISION: Implement TILT RenderTable creation 2013-09-24 13:59:39 +02:00
richiesams
3c3a6bd935 ZVISION: Fix typo in point range clipping 2013-09-24 13:59:39 +02:00
richiesams
dfe143137a ZVISION: Remove extraneous TODO
After redoing the math, I now know that the algorithm requires for(x) { for(y) {}}
2013-09-24 13:59:39 +02:00
richiesams
21474d32ab ZVISION: Fix error is RenderManager backgroundOffset handling 2013-09-24 13:59:39 +02:00
richiesams
ef3e26a073 ZVISION: Fix typo in PixelFormat 2013-09-24 13:59:39 +02:00
richiesams
7d1dca9ad1 ZVISION: Implement enabled/disabled support in Controls 2013-09-24 13:59:39 +02:00
richiesams
03d3646f84 ZVISION: Remove unnecessary check if a pointer was non-NULL before deleting.
I found out that you can call delete/free/delete[] on NULL and the function's defined
behavior is to do nothing.
2013-09-24 13:59:39 +02:00
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