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
richiesams
9f0420e1ce
ZVISION: Change the initializer list formatting to conform to how everything else is formatted
2013-08-11 15:04:46 -05:00
richiesams
309034c153
ZVISION: Stop checking puzzles if ResultAction::execute() returns false
2013-08-10 17:36:57 -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
931ad00a2d
ZVISION: Add StateFlag handling to Puzzle checking
2013-08-05 19:19:34 -05:00
richiesams
387bfb2806
ZVISION: Fix typo in Puzzle checking
2013-08-05 19:19:34 -05:00
richiesams
435ed16e03
ZVISION: Set the puzzle global variable after a Puzzle is completed
2013-08-05 19:19:33 -05:00
richiesams
a31a97c520
ZVISION: Add debug statements for Puzzle checking
2013-08-05 19:19:24 -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
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
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
4729641cf9
ZVISION: Fix typo in format string
2013-08-04 13:33:01 -05:00
richiesams
903e21b8af
ZVISION: Initialize the iterator
2013-08-04 13:32:57 -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
48a3a1530d
ZVISION: Move the criteriaMet bool outside of the loop
...
Only fire off the Results of ALL of the criteria are met
2013-08-04 13:32:51 -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
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