Add IndexConverter pointers to GraphicalSystem.
[tagua/yd.git] / src / animationsettings.cpp
bloba76bc970ed3da2674f36a5dae8baaaf942d2eb9a
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 */
10 #include "animationsettings.h"
11 #include "mastersettings.h"
13 AnimationSettings::AnimationSettings() {
14 reload();
17 void AnimationSettings::reload() {
18 Settings s = settings().group("animations");
20 enabled = s.flag("enabled", true);
21 maxSequence =
22 s.group("sequence").flag("enabled", true)
23 ? s.group("sequence")["max"].value<int>()
24 : 0;
25 movement = s["movement"].flag("enabled", true);
26 explode = s["explode"].flag("enabled", true);
27 fading = s["fading"].flag("enabled", true);
28 transform = s["transform"].flag("enabled", true);