35
|
1 #include <string.h>
|
33
|
2 #include "task_object.h"
|
|
3 #include "../ObjectType.h"
|
|
4
|
|
5 void
|
36
|
6 DefSprite(int number, float w, float h, int color, ObjDataPtr obj)
|
33
|
7 {
|
|
8 obj->type = Def;
|
|
9 obj->number = number;
|
|
10 obj->w = w;
|
|
11 obj->h = h;
|
|
12 obj->color = color;
|
|
13 }
|
|
14
|
|
15
|
|
16 void
|
|
17 DefSpriteEx(int number, short middlex, short middley, ObjDataPtr obj)
|
|
18 {
|
|
19 obj->type = DefEx;
|
|
20 obj->number = number;
|
|
21 obj->middlex = middlex;
|
|
22 obj->middley = middley;
|
|
23 }
|
|
24
|
|
25
|
|
26 void
|
|
27 PutSprite(int zorder, short x, short y, int number, ObjDataPtr obj)
|
|
28 {
|
|
29 obj->type = Put;
|
|
30 obj->zorder = zorder;
|
|
31 obj->x = x;
|
|
32 obj->y = y;
|
|
33 obj->number = number;
|
|
34 }
|
|
35
|
|
36
|
|
37 void
|
|
38 PutSpriteEx(int number, int x, int y, float scalex, float scaley, float angle, ObjDataPtr obj)
|
|
39 {
|
|
40 obj->type = PutEx;
|
|
41 obj->number = number;
|
|
42 obj->x = x;
|
|
43 obj->y = y;
|
|
44 obj->scalex = scalex;
|
|
45 obj->scaley = scaley;
|
|
46 obj->angle = angle;
|
|
47 }
|