Athena IO Library
WiiBanner.hpp
1 #ifndef WIIBANNER_H
2 #define WIIBANNER_H
3 
4 #include <vector>
5 #include <string>
6 #include "athena/Global.hpp"
7 
8 namespace athena
9 {
10 class WiiImage;
16 class WiiBanner
17 {
18 public:
19  enum
20  {
21  NoCopy = 0x00000001,
22  Bounce = 0x00000010,
23  NoCopyBounce = NoCopy | Bounce
24  };
25 
29  WiiBanner();
38  WiiBanner(atUint32 gameId, const std::string& title, const std::string& subtitle, WiiImage* m_banner, std::vector<WiiImage*> icons);
39  virtual ~WiiBanner();
40 
45  void setGameID(atUint64 id);
46 
51  atUint64 gameID() const;
52 
57  void setBannerImage(WiiImage* banner);
58 
63  WiiImage* bannerImage() const;
64 
69  void setBannerSize(atUint32 size);
70 
75  atUint32 bannerSize() const;
76 
81  void setTitle(const std::string& title);
82 
87  std::string title() const;
88 
93  void setSubtitle(const std::string& subtitle);
94 
99  std::string subtitle() const;
100 
105  void addIcon(WiiImage* icon);
106 
112  void setIcon(atUint32 id, WiiImage* icon);
113 
119  WiiImage* getIcon(atUint32 id) const;
120 
125  std::vector<WiiImage*> icons() const;
126 
131  void setAnimationSpeed(atUint16 animSpeed);
132 
137  atUint16 animationSpeed() const;
138 
143  void setPermissions(atUint8 permissions);
144 
149  atUint8 permissions() const;
150 
155  void setFlags(atUint32 flags);
156 
161  atUint32 flags() const;
162 protected:
163 private:
164  atUint64 m_gameId;
165  WiiImage* m_banner;
166  atUint32 m_animSpeed;
167  atUint8 m_permissions;
168  atUint32 m_flags;
169  atUint32 m_bannerSize;
170  std::vector<WiiImage*> m_icons;
171  std::string m_title;
172  std::string m_subtitle;
173 };
174 } // zelda
175 
176 #endif // WIIBANNER_H
atUint16 animationSpeed() const
animationSpeed
The WiiImage class.
Definition: WiiImage.hpp:13
void setPermissions(atUint8 permissions)
setPermissions
std::vector< WiiImage * > icons() const
icons
Wii banner container class.
Definition: WiiBanner.hpp:16
void setSubtitle(const std::string &subtitle)
setSubtitle
void setFlags(atUint32 flags)
setFlags
void setBannerSize(atUint32 size)
setBannerSize
void setBannerImage(WiiImage *banner)
setBannerImage
void setAnimationSpeed(atUint16 animSpeed)
setAnimationSpeed
void setIcon(atUint32 id, WiiImage *icon)
setIcon
WiiBanner()
WiiBanner.
std::string title() const
title
atUint64 gameID() const
gameID
void setGameID(atUint64 id)
setGameID
atUint8 permissions() const
permissions
void setTitle(const std::string &title)
setTitle
void addIcon(WiiImage *icon)
addIcon
WiiImage * getIcon(atUint32 id) const
getIcon
std::string subtitle() const
subtitle
atUint32 flags() const
flags
WiiImage * bannerImage() const
bannerImage
atUint32 bannerSize() const
bannerSize