The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
animated_game.cpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2007 - 2016 by Jeremy Rosen <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY.
11
12
See the COPYING file for more details.
13
*/
14
15
/**
16
* @file
17
* Template instantiations for wesnoth-game.
18
*/
19
20
#include "
animated.hpp
"
21
// Force compilation of the following template instantiations
22
23
#include "
units/frame.hpp
"
24
25
template
class
animated< image::locator >
;
26
template
class
animated< std::string >
;
27
template
class
animated< unit_frame >
;
28
29
// Put these here to ensure that there's only
30
// one instance of the current_ticks variable
31
namespace
{
32
int
current_ticks = 0;
33
}
34
35
void
new_animation_frame
()
36
{
37
current_ticks = SDL_GetTicks();
38
}
39
40
int
get_current_animation_tick
()
41
{
42
return
current_ticks;
43
}
animated< image::locator >
frame.hpp
Frame for unit's animation sequence.
animated.hpp
Animate units.
new_animation_frame
void new_animation_frame()
Definition:
animated_game.cpp:35
get_current_animation_tick
int get_current_animation_tick()
Definition:
animated_game.cpp:40
Generated by
1.8.8