O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transitions

The second part of the state machine framework is defining how an object transits from one state to another. Similar to the states property, all items have a transitions  property, which takes a list of definitions represented by the Transition objects and provides information about animations that should be played when a particular transition takes place.

A transition is identified by three attributes—the source state, the destination state, and a set of animations. Both the source state name (set to the from property) and the target state name (set to the to property) can be empty, in which case they should be interpreted as "any". If a Transition exists that matches the current state change, its animations will be executed. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required