summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/gameitem.h
Commit message (Collapse)AuthorAgeFilesLines
* Make design better. Remove the Tank interface. This is now an implicit interfaceEskil Abrahamsen Blomfeldt2009-04-301-1/+7
| | | | based on the meta-object system.
* Add two AIs: They are both designed to do the same. Spin until they see a tankEskil Abrahamsen Blomfeldt2009-04-301-5/+0
| | | | | | 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.
* Some updates to the errorstate example.Eskil Abrahamsen Blomfeldt2009-04-281-0/+22
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().