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
150a4793a6
ZVISION: Initialize Location to the main menu
...
This ensures that the first auto save of the game will have a
useful location
2013-09-04 00:19:03 -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
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
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
b28d502288
ZVISION: Convert ScriptManager::_activeNodes to normal pointers instead of SharedPtrs
2013-08-24 00:01:42 -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
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
3a23873c45
ZVISION: Convert _activeControls from a List to a HashMap
2013-08-18 19:53:02 -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
2565f96c55
ZVISION: Make ScriptManager::changeLocation delay the actual change until the end of the frame
...
This prevents memory corruption since changeLocation could be called in the middle of
a Puzzle list iteration and changeLocation clears all the Puzzle lists.
2013-08-10 17:31:57 -05:00
richiesams
dd11566ffd
ZVISION: Move the ScriptManager update functions to a single update() function.
...
Then make the individual update functions private
2013-08-10 17:28:41 -05:00
richiesams
5bba509db8
ZVISION: Create a global puzzle list and parse universe.scr into it during ScriptManager::initialize()
2013-08-10 17:25:38 -05:00
richiesams
20c8920929
ZVISION: Pass the scr fileName as a const reference
2013-08-05 00:05:26 -05:00
richiesams
9e996c4fec
ZVISION: Convert _activeNodes and _activeControls to Lists of SharedPtr
2013-08-04 13:33:08 -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
e170be4ea5
ZVISION: Remove redundant class qualifier
2013-08-04 13:32:59 -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
f39e1fdc43
ZVISION: Move CriteriaOperator, Criteria, and StateFlag inside the Puzzle class
2013-08-04 13:32:54 -05:00
richiesams
00eb279243
ZVISION: Create ScriptManager member function to change location
2013-08-04 13:32:53 -05:00
richiesams
070042fcb4
ZVISION: Modify Control parsing to use new Control class structure
2013-08-04 13:32:52 -05:00
richiesams
d4ae293f88
ZVISION: Rename parseResult() to parseResults()
2013-08-04 13:32:52 -05:00
richiesams
b20437a17d
ZVISION: Modify Criteria parsing to handle empty Criteria
2013-08-04 13:32:50 -05:00
richiesams
94000e0781
ZVISION: Replace includes with forward declarations
2013-08-04 13:32:29 -05:00
richiesams
c45a13cdd7
ZVISION: Conform to GCC spacing for template inside template
2013-08-04 13:32:18 -05:00
richiesams
24dc3e1793
ZVISION: Create ScriptManager state handling logic
2013-08-04 13:32:14 -05:00
richiesams
78daaeb583
ZVISION: Create main containers in ScriptManager
2013-08-04 13:32:13 -05:00
richiesams
a8e5e1e2db
ZVISION: Rename result_action.h/.cpp files to actions.h/.cpp
2013-08-04 13:32:03 -05:00
richiesams
3822de2aec
ZVISION: Change Puzzle::resultActions to a List of pointers instead of ResultAction objects
...
ResultAction is abstract, therefore, it can't be directly stored in the list
2013-08-04 13:31:59 -05:00
richiesams
1710468121
ZVISION: Fix includes to use new underscore names
2013-08-04 13:31:56 -05:00
richiesams
f99d613dcb
ZVISION: Rename files to use underscores instead of camelCase
2013-08-04 13:31:55 -05:00