Commit graph

74 commits

Author SHA1 Message Date
Marisa-Chan
d8ad0e5235 ZVISION: Added clean function for script scope and body for queue
routine.
2013-10-24 22:45:55 +00:00
Marisa-Chan
25834faf07 ZVISION: Style modifing by astyle. 2013-10-20 18:39:06 +00:00
Marisa-Chan
a6f025c74f ZVISION: Basic integration of SideFX into scriptManager. 2013-10-18 20:11:33 +00:00
Matthew Hoops
396808638d ZVISION: Consistently use the type of the state map
Should fix the AmigaOS4 build
2013-10-17 23:02:22 -04:00
RichieSams
8a69bcfe97 ZVISION: Add typedefs to shorten long type names 2013-10-04 09:20:31 -05: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
ffaffa2bc4 ZVISION: Convert all for-loops to use pre-increment instead of post-increment 2013-10-02 09:09:53 -05:00
RichieSams
239493305d ZVISION: Replace all occurances of (*iter). with iter-> 2013-10-02 09:09:53 -05:00
RichieSams
98e7627591 ZVISION: Add debug levels 2013-10-02 09:09:50 -05:00
RichieSams
8f7fa517d6 ZVISION: Directly access _globalState instead of using setStateValue
setStateValue does a _referenceTable lookup and potentially adds Puzzles
to _puzzlesToCheck. We know that _referenceTable and _puzzlesToCheck
with be cleared during ScriptManager::changeLocation(), so using
setStateValues ends up just being wasteful.
2013-09-21 00:08:36 -05:00
RichieSams
51fc627c05 ZVISION: Clear out the current state table values before loading any from a save file 2013-09-21 00:05:38 -05:00
RichieSams
1f9f392279 ZVISION: Enable auto saving 2013-09-16 00:04:34 -05:00
RichieSams
2187245012 ZVISION: Remove all AlphaEntries on room change 2013-09-16 00:04:23 -05:00
RichieSams
5cd1d2d1c2 ZVISION: Ensure getControl always returns something 2013-09-15 15:00:57 -05:00
RichieSams
6ee253a4d8 ZVISION: Add focus support for the ScriptManager 2013-09-15 15:00:56 -05:00
RichieSams
0eeeeded92 ZVISION: Add ScriptManager support for key press events 2013-09-15 15:00:41 -05:00
RichieSams
6a9572670c ZVISION: Add method for getting a pointer to a Control 2013-09-09 11:16:28 -05:00
RichieSams
eeace477a0 ZVISION: Set a Puzzle as completed before executing its ResultActions 2013-09-07 18:06:20 -05:00
RichieSams
81184d342c ZVISION: Delete a Control * when removing it from _activeControls 2013-09-07 18:05:47 -05:00
RichieSams
e92e3c5b0b ZVISION: Delete action_node 2013-09-06 22:50:42 -05:00
RichieSams
2840ce750e ZVISION: Save the Puzzle key, since ChangeLocation could be called
Which wipes all the puzzles
2013-09-06 22:50:42 -05:00
RichieSams
6ce62475ca ZVISION: Disable saving until it can be fixed 2013-09-06 22:29:48 -05:00
richiesams
23ae67c777 ZVISION: Create ScriptManager _activeControls serialization methods 2013-09-04 00:16:46 -05:00
richiesams
644af30df5 ZVISION: Create ScriptManager state table serialization methods 2013-09-04 00:16:45 -05:00
richiesams
b45c9e7c26 ZVISION: Create method for getting the current location 2013-09-04 00:16:27 -05:00
richiesams
9dd54a16e0 ZVISION: Remove zero valued entries in the global state table once a frame 2013-09-04 00:15:28 -05:00
richiesams
117eea1be6 ZVISION: Allow changeLocation to be executed right away instead of next frame 2013-09-03 23:54:29 -05:00
richiesams
34dcea106a ZVISION: Cleanup _activeControls in ScriptManager destructor 2013-09-03 00:27:03 -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
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
2431f60c02 ZVISION: Make Control purely virtual 2013-08-24 00:23:32 -05:00
richiesams
b28d502288 ZVISION: Convert ScriptManager::_activeNodes to normal pointers instead of SharedPtrs 2013-08-24 00:01:42 -05:00
richiesams
ac7b2251bb ZVISION: Delete Puzzles from heap before clearing _activePuzzles 2013-08-20 20:55:00 -05:00
richiesams
35622827f8 ZVISION: Store the Puzzles in _activePuzzles and _globalPuzzles on the heap
This allows List::push_back() to not cause a data copy
2013-08-20 20:50:14 -05:00
richiesams
b0635edff8 ZVISION: Revert to normal pointers instead of shared pointers 2013-08-18 19:53:07 -05:00
richiesams
d26c814d1e ZVISION: Force & operator to have precedence over == operator 2013-08-18 19:53:05 -05:00
richiesams
6ee93ad5c2 ZVISION: Convert _puzzlesToCheck to a Queue instead of a Stack 2013-08-18 19:53:04 -05:00
richiesams
46ab355766 ZVISION: Allow Puzzles to have mutiple 'sets' of CriteriaEntries 2013-08-18 19:53:04 -05:00
richiesams
908e784957 ZVISION: Allow controls to be enabled or disabled 2013-08-18 19:53:03 -05:00
richiesams
c840d082ce ZVISION: Allow ONCE_PER_INST puzzles to be repeated once per room instead of once per game 2013-08-18 19:52:59 -05:00
richiesams
b22ed391fe ZVISION: Set the background position after the .scr file has been parsed so we know the RenderState 2013-08-18 19:52:54 -05:00
richiesams
0a840fa664 ZVISION: Rename 'x' variable in changeLocation to 'offset'
Since it can be in either the x or the y direction
2013-08-16 17:27:51 -05:00
richiesams
0fe3ae711a ZVISION: Add cursor and background image resets during location change 2013-08-14 11:20:23 -05:00
richiesams
39934b1da7 ZVISION: Set the initial game location (The opening video and menu) 2013-08-14 11:20:20 -05:00
richiesams
269bed7c7d ZVISION: Implement mouse event handling 2013-08-11 15:10:52 -05:00
richiesams
553a3ced68 ZVISION: Remove a verbose debug message 2013-08-11 15:06:11 -05:00
richiesams
9681d7515e ZVISION: Fix enum qualifiers 2013-08-11 15:05:38 -05:00