Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix top level compile in examples/animation | Eskil Abrahamsen Blomfeldt | 2009-05-14 | 1 | -3/+0 |
| | | | | Three examples have been moved. | ||||
* | Make QAbstractTransition::eventTest() non-const | Eskil Abrahamsen Blomfeldt | 2009-05-14 | 10 | -22/+22 |
| | | | | | We decided to remove the const of the eventTest() since some transitions have dynamic conditions and need to update when eventTest() is called. | ||||
* | Pop up message when a tank wins the game | Eskil Abrahamsen Blomfeldt | 2009-05-14 | 7 | -12/+111 |
| | | | | | Also fixed: Added some docs and moved the tanks a little so they don't start partly outside the scene rect. | ||||
* | Fix run-time error in Seek AI's state machine | Eskil Abrahamsen Blomfeldt | 2009-05-14 | 1 | -1/+5 |
| | | | | | Passed parent as 'tank', thus getting a null parent in the GoToLocation state, which breaks the machine when you transition into the state. | ||||
* | Fix SpinState in Tank Game Example to spin more than 180 degrees | Eskil Abrahamsen Blomfeldt | 2009-05-14 | 2 | -2/+12 |
| | | | | This was a leftover from when the setDirection() semantics were broken. | ||||
* | document statemachine/factorial example | Kent Hansen | 2009-05-13 | 1 | -26/+38 |
| | |||||
* | doc: Correct names of snippets in docs for Tank Game example | Eskil Abrahamsen Blomfeldt | 2009-05-13 | 1 | -0/+4 |
| | |||||
* | document the statemachine/eventtransitions example | Kent Hansen | 2009-05-12 | 1 | -1/+15 |
| | |||||
* | Change name of "errorstate" example to "tankgame" | Eskil Abrahamsen Blomfeldt | 2009-05-12 | 26 | -29/+40 |
| | | | | | The error state is not a big enough part of the example to justify naming it after it. | ||||
* | Fixes: document statemachine/twowaybutton example | Kent Hansen | 2009-05-12 | 1 | -7/+15 |
| | |||||
* | kill some simplistic/overlapping/under-developed examples | Kent Hansen | 2009-05-12 | 9 | -445/+0 |
| | |||||
* | document the statemachine/pingpong example | Kent Hansen | 2009-05-12 | 1 | -0/+14 |
| | |||||
* | Merge branch 'kinetic-statemachine' of git@scm.dev.nokia.troll.no:qt/kinetic ↵ | Alexis Menard | 2009-05-12 | 120 | -763/+4176 |
|\ | | | | | | | | | | | | | into kinetic-statemachine Conflicts: src/gui/graphicsview/qgraphicsitem.cpp | ||||
| * | improve the docs for the trafficlight example | Kent Hansen | 2009-05-12 | 1 | -25/+22 |
| | | |||||
| * | Make selecting plugins more user friendly and platform independent | Eskil Abrahamsen Blomfeldt | 2009-05-11 | 5 | -18/+66 |
| | | | | | | | | | | | | Using *.dll was just a placeholder here. The code is mostly copied from the Plug&Paint example, and goes through all the plugins to find the compatible ones with some hacks to find out the application directory on windows and mac. | ||||
| * | Instead of adding animations for all properties to all transitions, we use | Eskil Abrahamsen Blomfeldt | 2009-05-06 | 1 | -7/+11 |
| | | | | | | | | the default animation concept, since this is its intended use. | ||||
| * | Add chase state and ability to detect and fire at other tanks. This reveals an | Eskil Abrahamsen Blomfeldt | 2009-05-06 | 2 | -4/+92 |
| | | | | | | | | assert in the state machine which needs to be debugged. | ||||
| * | Avoid passage where the walls meet the edge of the scene rect. | Eskil Abrahamsen Blomfeldt | 2009-05-06 | 1 | -5/+6 |
| | | |||||
| * | get rid of margin | Kent Hansen | 2009-05-05 | 1 | -1/+2 |
| | | |||||
| * | add event as argument to onEntry(), onExit() and onTransition() | Kent Hansen | 2009-05-05 | 15 | -50/+50 |
| | | | | | | | | | | | | | | | | | | Accessing the event can be useful. E.g., onEntry() can do some common event processing regardless of which transition caused the state to be entered; onTransition() can be used in combination with eventTest(), where eventTest() would first check that the input matches some criteria, and then the actual processing of that input would be done in onTransition. | ||||
| * | Add randomness. | Eskil Abrahamsen Blomfeldt | 2009-05-05 | 1 | -2/+2 |
| | | |||||
| * | Make sure target state is set correctly. Also make sure eventTest() actually | Eskil Abrahamsen Blomfeldt | 2009-05-05 | 1 | -5/+8 |
| | | | | | | | | overrides the virtual function. | ||||
| * | Set collidedLine for the implicit walls around the scene to allow for collision | Eskil Abrahamsen Blomfeldt | 2009-05-05 | 1 | -4/+21 |
| | | | | | | | | response. | ||||
| * | Make sure the correct position/direction is actually set at the end of a | Eskil Abrahamsen Blomfeldt | 2009-05-05 | 1 | -10/+16 |
| | | | | | | | | loop. Also make sure we set the direction to an angle within 360 degrees. | ||||
| * | Fix support reverse actions. Logic was broken and would always return false | Eskil Abrahamsen Blomfeldt | 2009-05-05 | 1 | -2/+2 |
| | | | | | | | | immediately for reverse actions, thus immediately stopping them. | ||||
| * | Add unfinished "more advanced" AI for errorstate. | Eskil Abrahamsen Blomfeldt | 2009-04-30 | 6 | -5/+184 |
| | | |||||
| * | Make design better. Remove the Tank interface. This is now an implicit interface | Eskil Abrahamsen Blomfeldt | 2009-04-30 | 16 | -86/+65 |
| | | | | | | | | based on the meta-object system. | ||||
| * | Add two AIs: They are both designed to do the same. Spin until they see a tank | Eskil Abrahamsen Blomfeldt | 2009-04-30 | 14 | -26/+262 |
| | | | | | | | | | | | | and then fire. One of them has an error, which causes it to enter its error state. The errorstate example has been changed to handle this by disabling the tank. The rest of the tanks will keep working. | ||||
| * | kill QStateMachine::animationsFinished(), introduce QState::polished() | Kent Hansen | 2009-04-29 | 1 | -2/+2 |
| | | |||||
| * | Compile against new QState::ChildMode API. | Eskil Abrahamsen Blomfeldt | 2009-04-29 | 1 | -1/+1 |
| | | |||||
| * | Kill gameOver signal as it was only used when you clicked the stop action | Eskil Abrahamsen Blomfeldt | 2009-04-29 | 2 | -9/+6 |
| | | |||||
| * | Merge branch 'kinetic-animations' into kinetic-statemachine | Kent Hansen | 2009-04-29 | 21 | -117/+370 |
| |\ | | | | | | | | | | | | | Conflicts: examples/animation/sub-attaq/states.cpp | ||||
| | * | Build fix for mingw | Thierry Bastian | 2009-04-27 | 18 | -54/+52 |
| | | | |||||
| | * | Add an OSD to display game progress in the scene | Alexis Menard | 2009-04-24 | 11 | -65/+320 |
| | | | |||||
| * | | replace QState::Type with QState::childMode property | Kent Hansen | 2009-04-29 | 2 | -2/+2 |
| | | | | | | | | | | | | Result of API review. | ||||
| * | | Adapt to recent API changes and bug fixes. | Eskil Abrahamsen Blomfeldt | 2009-04-29 | 1 | -2/+6 |
| | | | |||||
| * | | modifiers --> modifiersMask | Kent Hansen | 2009-04-29 | 1 | -9/+0 |
| | | | | | | | | | | | | | | | | | | Result of API review. A == comparison of the modifiers is not useful. The common case is you want to test if one or more modifiers are set, i.e. a mask check. | ||||
| * | | make history state constructible | Kent Hansen | 2009-04-29 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Decided in API review. The intention of QHistoryState not being constructible was so that people wouldn't subclass it and reimplement onEntry()/onExit(), thinking that those functions would actually get called (which they won't). However, we recently added the entered() signal to QAbstractState, so people are going to connect to it and ask why they never get the signal for a QHistoryState. We might as well make QHistoryState constructible and just document that it doesn't make sense to subclass it. | ||||
| * | | say hello (again) to QAbstract{State,Transition}::machine() | Kent Hansen | 2009-04-29 | 2 | -37/+18 |
| | | | | | | | | | | | | It's useful and it's simple for us to expose, so let's. | ||||
| * | | Work around an oddity in parallel states that causes all regions to exit | Eskil Abrahamsen Blomfeldt | 2009-04-28 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | if there is a transition from one of them (even if the target state of the transition is inside the region.) | ||||
| * | | Some updates to the errorstate example. | Eskil Abrahamsen Blomfeldt | 2009-04-28 | 12 | -126/+270 |
| | | | | | | | | | | | | | | | | | | Added cannon firing. There are some problems left: For some reason the parallel state group does not work properly, so only one tank moves even if you add more. There also seems to be something wrong with historyState->setDefaultState(). | ||||
| * | | compile after api changes | Kent Hansen | 2009-04-28 | 3 | -8/+8 |
| | | | |||||
| * | | Really broken plugin for errorState. Don't try to use this yet, it doesn't | Eskil Abrahamsen Blomfeldt | 2009-04-24 | 3 | -0/+115 |
| | | | | | | | | | | | | work at all. | ||||
| * | | Unfinished tank AI game. The idea is that you plug in AIs for the tanks, and | Eskil Abrahamsen Blomfeldt | 2009-04-24 | 8 | -0/+619 |
| |/ | | | | | | | | | one such plugin will have a run time error, so the game server needs to use errorState for handling errors. | ||||
| * | Merge branch 'kinetic-statemachine' into kinetic-animations | Kent Hansen | 2009-04-24 | 8 | -27/+12 |
| |\ | | | | | | | | | | | | | Conflicts: examples/animation/piemenu/qgraphicspiemenu_p.h | ||||
| | * | Remove API for setting specific restore policies on states. We have no clear | Eskil Abrahamsen Blomfeldt | 2009-04-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | use case for this, so it has been removed. If the requirement arises we can add it back in later. Since it no longer makes sense to have it in QAbstractState, the RestorePolicy enum has been moved to QStateMachine. | ||||
| | * | Compile. | Eskil Abrahamsen Blomfeldt | 2009-04-23 | 1 | -2/+0 |
| | | | |||||
| | * | Remove specific RestorePolicy per state from example. The semantics for this | Eskil Abrahamsen Blomfeldt | 2009-04-23 | 3 | -15/+0 |
| | | | | | | | | | | | | | | | have changed to something which is more intuitive, so it is no longer useful for this case. | ||||
| | * | kill the stateactions api | Kent Hansen | 2009-04-22 | 5 | -11/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It just didn't give us that much. Typically you just reimplement onEntry/onExit/onTransition when you want to do something. We go back to the signals-and-slots approach: states have entered() and exited() signals that you can connect to. It's still possible to have an action-based API, but then you build it on top of the core API, which is OK. Replacing 4 public classes (and one layer in the hierarchy) with 2 signals feels good. | ||||
| * | | Moved the animation examples piemenu and photobrowser to examples/research | Leonardo Sobral Cunha | 2009-04-23 | 16 | -0/+0 |
| | | |