annotate field.c @ 18:3780d1b2943e

*** empty log message ***
author gongo
date Sat, 04 Nov 2006 09:09:21 +0000
parents 6910aeb52843
children b5c5ffd4d2f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
1 /*
18
3780d1b2943e *** empty log message ***
gongo
parents: 17
diff changeset
2 * $Id$
0
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
3 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
4 #include <stdio.h>
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
5 #include <stdlib.h>
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
6 #include "libps2.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
7 #include "ps2util.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
8 #include "mytype.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
9 #include "col.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
10 #include "field.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
11 #include "car.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
12 #include "quotanion.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
13 #include "game.h"
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
14
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
15 #define DEFAULT_SET (EFFECT_TEXTURE_USE | EFFECT_ALPHABLEND_UNUSE | EFFECT_SHADING_FLAT)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
16 #define BUFSIZE 256
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
17
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
18 /* --- main.c --- */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
19 extern FILE *main_fp;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
20 /* --- game.c --- */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
21 extern Game game;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
22
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
23
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
24 static int field_num_max = 0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
25 static int field_num = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
26
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
27 static FieldPtr field_list;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
28 static FieldPtr field_actual;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
29
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
30 static FieldPtr
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
31 field_create(char *fieldImg, char *colImg, TEXTURE* tex)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
32 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
33 FieldPtr self;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
34 OBJECT *obj;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
35 PolygonInfo *xml;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
36 void *free_addr;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
37
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
38 FVECTOR location = {0, 0, 0, 1};
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
39 FVECTOR direction = {0, 0, 0, 1};
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
40
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
41 obj = ps2util_obj_Create_fromXML(fieldImg);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
42 memcpy(obj->xyz, location, sizeof(FVECTOR));
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
43 memcpy(obj->angle, direction, sizeof(FVECTOR));
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
44 ps2util_obj_Renew_transMatrix(obj);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
45 ps2util_obj_Set_effect(obj, DEFAULT_SET);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
46 ps2util_obj_Set_texture(obj, tex);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
47
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
48 xml = xml_read_file(colImg); //$B$3$3$G%3!<%9$NAv$l$k>l=j(B($BEv$?$jH=Dj(B)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
49
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
50 if (malloc_align16(&free_addr, &self, sizeof(Field)) == -1) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
51 fprintf(stderr, "field.c: malloc_align16 error\n");
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
52 fflush(stderr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
53 exit(EXIT_FAILURE);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
54 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
55 self->object = obj;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
56 self->next = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
57 self->prev = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
58 self->free_addr = free_addr;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
59 #ifdef DEBUG
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
60 fprintf(main_fp, "malloc fieldNode addr = %x\n", (int)free_addr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
61 #endif
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
62 col_init(&self->colface, xml);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
63
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
64 xml_free(xml);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
65
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
66 return self;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
67 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
68
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
69 static void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
70 field_new_readCSV(FILE *fp)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
71 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
72 FieldPtr fieldHead = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
73 FieldPtr newField = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
74 FieldPtr prevField = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
75 char buff[BUFSIZE], *bufp;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
76 char fieldImg[BUFSIZE], colImg[BUFSIZE], texname[BUFSIZE];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
77 TEXTURE *tex = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
78 int course_id;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
79 Bool flag = FALSE;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
80
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
81 while ((bufp = fgets(buff, BUFSIZE, fp)) != NULL) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
82 bufp++;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
83
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
84 switch (buff[0]) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
85 case 'n': // $B%3!<%9(BID$B$NFI$_<h$j(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
86 if (!flag) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
87 sscanf(bufp, " %d\n", &course_id);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
88 if (game.course_id == course_id) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
89 flag = TRUE;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
90 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
91 } else {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
92 goto FINISH_LOAD;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
93 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
94 break;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
95 case 't': // $B%F%/%9%A%c$N%m!<%I(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
96 if (flag) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
97 sscanf(bufp, " %s\n", texname);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
98 tex = read_png_file(texname);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
99 ps2util_tex_Set(tex);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
100 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
101 break;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
102 case 'c': // $B%3!<%9$N%m!<%I(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
103 if (flag) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
104 sscanf(bufp, " %s %s\n", fieldImg, colImg);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
105 newField = field_create(fieldImg, colImg, tex);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
106 if (!fieldHead) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
107 fieldHead = prevField = newField;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
108 } else {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
109 prevField->next = newField;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
110 newField->prev = prevField;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
111 prevField = newField;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
112 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
113 newField->init = fieldHead;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
114 field_num_max++;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
115 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
116 break;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
117 default:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
118 break;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
119 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
120 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
121
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
122 FINISH_LOAD:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
123 // $B@hF,$H:G8eHx$N%j%s%/$rD%$k(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
124 newField->next = newField->init;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
125 newField->init->prev = newField;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
126
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
127 field_list = field_actual = fieldHead;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
128 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
129
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
130
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
131 /*---------------------/
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
132 FieldPtr
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
133 field_init:
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
134 $B;XDj$7$?%U%!%$%k$+$i%3!<%9$r@8@.$9$k!#(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
135 $BLa$jCM(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
136 $B%3!<%9@hF,$N%]%$%s%?(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
137 /---------------------*/
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
138 void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
139 field_init()
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
140 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
141 FILE *fp;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
142 char *filename = "course/course.dat";
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
143
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
144 if (!(fp = fopen(filename, "r"))) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
145 fprintf(main_fp, "error read file %s\n", filename);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
146 exit(EXIT_FAILURE);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
147 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
148 field_new_readCSV(fp);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
149 fclose(fp);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
150 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
151
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
152
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
153 static void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
154 field_draw(FieldPtr p)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
155 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
156 ps2_vu0_unit_matrix(p->object->transfer);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
157
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
158 p->object->transfer[3][0] = p->location[0];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
159 p->object->transfer[3][1] = p->location[1];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
160 p->object->transfer[3][2] = p->location[2];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
161 p->object->transfer[3][3] = p->location[3];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
162 ps2util_obj_Draw(p->object);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
163 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
164
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
165
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
166 void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
167 field_update(CarPtr car)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
168 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
169 FieldPtr p;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
170
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
171 p = field_actual;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
172 // current
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
173 p->location[0] = -car->location[0];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
174 p->location[1] = -car->location[1];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
175 p->location[2] = -car->location[2];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
176 p->location[3] = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
177 field_draw(p);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
178
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
179 // next
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
180 p = field_actual->next;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
181 if (p) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
182 p->location[0] = -car->location[0];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
183 p->location[1] = -car->location[1];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
184 p->location[2] = -car->location[2];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
185 p->location[3] = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
186 field_draw(p);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
187 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
188
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
189 // prev
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
190 p = field_actual->prev;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
191 if (p) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
192 p->location[0] = -car->location[0];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
193 p->location[1] = -car->location[1];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
194 p->location[2] = -car->location[2];
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
195 p->location[3] = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
196 field_draw(p);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
197 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
198 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
199
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
200 void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
201 field_destroy()
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
202 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
203 FieldPtr p = field_list;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
204 FieldPtr d;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
205 TEXTURE *t;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
206
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
207 p->prev->next = NULL;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
208
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
209 t = p->object->surfaces->texture;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
210 ps2util_tex_Exclude(t);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
211 free_texture(t);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
212
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
213 while (p) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
214 d = p;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
215 p = p->next;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
216 ps2util_obj_Free(d->object);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
217 free(d->free_addr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
218 #ifdef DEBUG
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
219 fprintf(main_fp, "free fieldNode addr = %x\n", (int)d->free_addr);
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
220 #endif
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
221 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
222
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
223 field_num_max = 0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
224 field_num = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
225 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
226
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
227 /*
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
228 * $B<~2s5-O?!#(B1$B<~$9$kKh$K(B1$B$rJV$9!#(B
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
229 */
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
230 int
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
231 field_rap_increment(int n)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
232 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
233 field_num += n;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
234 if (field_num > field_num_max) {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
235 field_num = 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
236 return 1;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
237 } else {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
238 return 0;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
239 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
240 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
241
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
242 void
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
243 field_set_actual(FieldPtr p)
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
244 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
245 field_actual = p;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
246 }
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
247
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
248 FieldPtr
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
249 field_get_actual()
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
250 {
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
251 return field_actual;
0fae5658fb0b Initial revision
gongo
parents:
diff changeset
252 }