Debian Codegraph @

src/io/gfx/anim.h

raw symbols SCIP
1
2 /**
3 *
4 * @file anim.h
5 *
6 * Part of the OpenJazz project
7 *
8 * @par History:
9 * - 23rd August 2005: Created OpenJazz.h
10 * - 31st January 2006: Created level.h from parts of OpenJazz.h
11 * - 19th March 2009: Created sprite.h from parts of level.h
12 * - 26th July 2009: Created anim.h from parts of sprite.h
13 *
14 * @par Licence:
15 * Copyright (c) 2005-2013 AJ Thomson
16 *
17 * OpenJazz is distributed under the terms of
18 * the GNU General Public License, version 2.0
19 *
20 */
21
22
23 #ifndef _ANIM_H
24 #define _ANIM_Hcxx . . $ `src/io/gfx/anim.h:24:9`!
25
26
27 #include "OpenJazz.h"cxx . . $ `<file>/src/OpenJazz.h`/
28
29 // Classes
30
31 class Spritecxx . . $ Sprite#;
32 struct SDL_Colorcxx . . $ SDL_Color#;
33
34 /// Animation
35 class Animcxx . . $ Anim# {
36
37 private:
38 Spritecxx . . $ Sprite#** spritescxx . . $ Anim#sprites.; ///< Sprite images
39 signed char* xOffsetscxx . . $ Anim#xOffsets.; ///< Horizontal offsets for each frame
40 signed char* yOffsetscxx . . $ Anim#yOffsets.; ///< Vertical offsets for each frame
41 signed char shootXcxx . . $ Anim#shootX.; ///< Bullet generation x-coordinate
42 signed char shootYcxx . . $ Anim#shootY.; ///< Bullet generation y-coordinate
43 signed char accessoryXcxx . . $ Anim#accessoryX.; ///< Accessory animation x-coordinate
44 signed char accessoryYcxx . . $ Anim#accessoryY.; ///< Accessory animation y-coordinate
45 signed char yOffsetcxx . . $ Anim#yOffset.; ///< Vertical offset
46 unsigned char framescxx . . $ Anim#frames.; ///< Number of frames
47 unsigned char framecxx . . $ Anim#frame.; ///< Current frame
48 unsigned char accessorycxx . . $ Anim#accessory.; ///< Number of an animation that is an accessory to this animation
49 ///< Most of the time accessories are used with guardians.
50
51 Animcxx . . $ Anim#Anim(6966e488cbf0909d).(const Animcxx . . $ Anim#&); // non construction-copyable
52 Animcxx . . $ Anim#& operatorcxx . . $ Anim#`operator=`(314e2c5e53e57d58).=(const Animcxx . . $ Anim#&); // non copyable
53
54 public:
55 Animcxx . . $ Anim#Anim(49f6e7a06ebc5aa8). ();
56 ~cxx . . $ Anim#`~Anim`(49f6e7a06ebc5aa8).Animcxx . . $ Anim# ();
57
58 void setDatacxx . . $ Anim#setData(f6a7b8e80ccbdd28). (int length, signed char sX, signed char sY, signed char aX, signed char aY, unsigned char a, signed char y);
59 void setFramecxx . . $ Anim#setFrame(918ebd27a9ddbad3). (int nextFrame, bool looping);
60 void setFrameDatacxx . . $ Anim#setFrameData(b004b9a6a91098d4). (Spritecxx . . $ Sprite# *frameSprite, signed char x, signed char y);
61 int getWidthcxx . . $ Anim#getWidth(b126dc7c1de90089). ();
62 int getHeightcxx . . $ Anim#getHeight(b126dc7c1de90089). ();
63 int getLengthcxx . . $ Anim#getLength(b126dc7c1de90089). ();
64 fixedcxx . . $ fixed# getShootXcxx . . $ Anim#getShootX(b126dc7c1de90089). ();
65 fixedcxx . . $ fixed# getShootYcxx . . $ Anim#getShootY(b126dc7c1de90089). ();
66 fixedcxx . . $ fixed# getAccessoryShootXcxx . . $ Anim#getAccessoryShootX(b126dc7c1de90089). ();
67 fixedcxx . . $ fixed# getAccessoryShootYcxx . . $ Anim#getAccessoryShootY(b126dc7c1de90089). ();
68 fixedcxx . . $ fixed# getOffsetcxx . . $ Anim#getOffset(b126dc7c1de90089). ();
69 fixedcxx . . $ fixed# getXOffsetcxx . . $ Anim#getXOffset(b126dc7c1de90089). ();
70 fixedcxx . . $ fixed# getYOffsetcxx . . $ Anim#getYOffset(b126dc7c1de90089). ();
71 void drawcxx . . $ Anim#draw(b1146eedae1e1d0b). (fixedcxx . . $ fixed# x, fixedcxx . . $ fixed# y, int accessories = 7);
72 void drawScaledcxx . . $ Anim#drawScaled(b1146eedae1e1d0b). (fixedcxx . . $ fixed# x, fixedcxx . . $ fixed# y, fixedcxx . . $ fixed# scale);
73 void setPalettecxx . . $ Anim#setPalette(acbc52fef2632da7). (SDL_Colorcxx . . $ SDL_Color# *palette, int start, int amount);
74 void flashPalettecxx . . $ Anim#flashPalette(d4f767463ce0a6b3). (int index);
75 void restorePalettecxx . . $ Anim#restorePalette(49f6e7a06ebc5aa8). ();
76
77 };
78
79 #endif
80