1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #include "g1_object.hh"
|
---|
10 |
|
---|
11 | enum
|
---|
12 | {
|
---|
13 | G1_SUPERTANK = 0,
|
---|
14 | G1_PEON_TANK = 1,
|
---|
15 | G1_ENGINEER = 2,
|
---|
16 | G1_ROCKET_TANK = 3,
|
---|
17 | G1_EXPLOSION1 = 4,
|
---|
18 | G1_BULLET = 5,
|
---|
19 | G1_ROCKET = 6,
|
---|
20 | G1_SUPERTANK_TURRET = 7,
|
---|
21 | G1_JET = 8,
|
---|
22 | G1_ELECTRIC_CAR = 9,
|
---|
23 | G1_HELICOPTER = 10,
|
---|
24 | G1_ENEMY_ENGINEER = 11,
|
---|
25 | G1_LIGTBULB = 12,
|
---|
26 | G1_VERY_BIG_GUN = 13,
|
---|
27 |
|
---|
28 | G1_CONVOY = 19,
|
---|
29 |
|
---|
30 | G1_GUIDED_MISSILE = 32,
|
---|
31 | G1_SHRAPNEL = 33,
|
---|
32 | G1_SMOKE_TRAIL = 34,
|
---|
33 | G1_JET_BOMB = 35,
|
---|
34 | G1_TOTAL_TYPES
|
---|
35 | };
|
---|
36 |
|
---|
37 | g1_object_type *g1_get_old_object_type_remap()
|
---|
38 | {
|
---|
39 |
|
---|
40 | g1_object_type *a=(g1_object_type *)i4_malloc(sizeof(g1_object_type) * G1_TOTAL_TYPES,
|
---|
41 | "old obj_remap");
|
---|
42 |
|
---|
43 | for (int i=0; i<G1_TOTAL_TYPES; i++)
|
---|
44 | a[i]=-1;
|
---|
45 |
|
---|
46 | a[G1_SUPERTANK] = g1_get_object_type("stank");
|
---|
47 | a[G1_PEON_TANK] = g1_get_object_type("peon_tank");
|
---|
48 | a[G1_ENGINEER] = g1_get_object_type("engineer");
|
---|
49 | a[G1_ROCKET_TANK] = g1_get_object_type("rocket_tank");
|
---|
50 | a[G1_EXPLOSION1] = g1_get_object_type("explosion1");
|
---|
51 | a[G1_BULLET] = g1_get_object_type("bullet");
|
---|
52 | a[G1_ROCKET] = g1_get_object_type("rocket");
|
---|
53 | a[G1_JET] = g1_get_object_type("jet");
|
---|
54 | a[G1_ELECTRIC_CAR] = g1_get_object_type("electric_car");
|
---|
55 | a[G1_LIGTBULB] = g1_get_object_type("lightbulb");
|
---|
56 | a[G1_VERY_BIG_GUN] = g1_get_object_type("very_big_gun");
|
---|
57 | a[G1_CONVOY] = g1_get_object_type("convoy");
|
---|
58 | a[G1_GUIDED_MISSILE] = g1_get_object_type("guided_missile");
|
---|
59 | a[G1_SHRAPNEL] = g1_get_object_type("shrapnel");
|
---|
60 | a[G1_SMOKE_TRAIL] = g1_get_object_type("smoke_trail");
|
---|
61 | a[G1_JET_BOMB] = g1_get_object_type("dropped_bomb");
|
---|
62 |
|
---|
63 | return a;
|
---|
64 | }
|
---|