-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathISprite.hpp
51 lines (44 loc) · 1.18 KB
/
ISprite.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// ISprite.hpp for arcade in /home/brout_m/rendu/cpp/ArcadeInterfaces
//
// Made by brout_m
// Login <[email protected]>
//
// Started on Fri Mar 31 13:43:50 2017 brout_m
// Last update Sat Apr 1 19:59:58 2017 Ludovic Petrenko
//
#ifndef ISPRITE_HPP_
# define ISPRITE_HPP_
# include <string>
namespace arcade
{
///
/// \class ISprite
/// \brief Interface to use in order to generate the sprite loading list
///
class ISprite
{
public:
///
/// \fn virtual ~ISprite()
/// \brief virtual destructor
///
virtual ~ISprite() {};
///
/// \fn virtual size_t spritesCount() const = 0
/// \brief returns the numbers of sprites
///
virtual size_t spritesCount() const = 0;
///
/// \fn virtual std::string getGraphicPath(size_t id) const = 0
/// \brief generates on-the-fly the path to the sprite at position pos to load
///
virtual std::string getGraphicPath(size_t pos) const = 0;
///
/// \fn virtual std::string const& getAscii() const = 0
/// \brief returns the ascii character at position pos from the animation sequence
///
virtual char getAscii(size_t pos) const = 0;
};
}
#endif // !ISPRITE_HPP_