Mercurial > hg > Members > koba > t_dandy
comparison ppe/Sprite.cc @ 35:c122e3d2302e
add all state task.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 09 Jan 2011 14:28:44 +0900 |
parents | 39e643fc4f90 |
children | 4516141d844a |
comparison
equal
deleted
inserted
replaced
34:7aaaaf5dde40 | 35:c122e3d2302e |
---|---|
1 #include <string.h> | |
1 #include "task_object.h" | 2 #include "task_object.h" |
2 #include "../ObjectType.h" | 3 #include "../ObjectType.h" |
3 | 4 |
4 void | 5 void |
5 DefSprite(int number, const char *name, float w, float h, int color, ObjDataPtr obj) | 6 DefSprite(int number, const char *name, float w, float h, int color, ObjDataPtr obj) |
6 { | 7 { |
7 obj->type = Def; | 8 obj->type = Def; |
8 obj->number = number; | 9 obj->number = number; |
10 strcpy(obj->name, name); | |
9 obj->w = w; | 11 obj->w = w; |
10 obj->h = h; | 12 obj->h = h; |
11 obj->color = color; | 13 obj->color = color; |
12 } | 14 } |
13 | 15 |