1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
|
#include "../../utils.h"
#include "../../coord.h"
#include "../../physical.h"
/* NOTE: Although frog_0 and frog_1 exist, they are never actually used in the
current implementation. */
#include "frog_0"
#include "frog_1"
#include "frog_2"
#include "frog_3"
#include "frog_4"
#include "frog_5"
#include "frog_dead"
#include "frog_mask_0"
#include "frog_mask_1"
#include "frog_mask_2"
#include "frog_mask_3"
#include "frog_mask_4"
#include "frog_mask_5"
#include "frog_mask_dead"
#define FROG_TIME 200
Size Frog::get_size_max()
{
Size ret;
ret.width = 13;
ret.height = 11;
return ret;
}
PhysicalP Frog::create(WorldP w,LocatorP l,const Pos &pos)
{
Id invalid;
PhysicalP ret = new Frog(w,l,pos,invalid);
assert(ret);
return ret;
}
CreatureXdata Frog::creatureXdata;
HoppingXdata Frog::hoppingXdata;
const CreatureContext Frog::creatureContext =
{ /** CreatureContext **/
0, /* crawlSpeed */
0, /* centerSpeed */
15, /* airSpeed */
15, /* climbSpeed */
13, /* jump */
0, /* acceleration */
80, /* corpseHealth */
True, /* biological */
{7,7}, /* deadSize */
{3,4}, /* deadOffset */
(char *)frog_dead_bits, /* deadPixmapBits */
(char *)frog_mask_dead_bits, /* deadMaskBits */
{/** MovingContext **/
"black", False,
"green4", False,
/* animMax */
{1,1,1,1,1,1,
0,
0,0,
0,
0,0,
0,
0,0,
0,
0,0,
1,
1,1,
1,1,
1,1,
},
/* sizes */
{{7,5},{7,5},{13,8},{13,8},{9,11},{9,5},
{0,0},
{0,0},{0,0},
{0,0},
{0,0},{0,0},
{0,0},
{0,0},{0,0},
{0,0},
{0,0},{0,0},
{9,5}, /* Must be (trying same width) */
{9,11},{9,11}, /* same size. */
{9,11},{9,11},
{13,8},{13,8},
},
/* offsets */
{{3,6},{3,6},{0,1},{0,1},{2,0},{2,6},
{0,0},
{0,0},{0,0},
{0,0},
{0,0},{0,0},
{0,0},
{0,0},{0,0},
{0,0},
{0,0},{0,0},
{2,6},
{2,0},{2,0},
{2,0},{2,0},
{0,1},{0,1},
},
/* pixmapBits */
{{(char *)frog_0_bits},{(char *)frog_1_bits},
{(char *)frog_2_bits},{(char *)frog_3_bits},
{(char *)frog_4_bits},{(char *)frog_5_bits},
{0},
{0},{0},
{0},
{0},{0},
{0},
{0},{0},
{0},
{0},{0},
{(char *)frog_5_bits},
{(char *)frog_4_bits},{(char *)frog_4_bits},
{(char *)frog_4_bits},{(char *)frog_4_bits},
{(char *)frog_2_bits},{(char *)frog_3_bits},
},
/* maskBits */
{{(char *)frog_mask_0_bits},{(char *)frog_mask_1_bits},
{(char *)frog_mask_2_bits},{(char *)frog_mask_3_bits},
{(char *)frog_mask_4_bits},{(char *)frog_mask_5_bits},
{0},
{0},{0},
{0},
{0},{0},
{0},
{0},{0},
{0},
{0},{0},
{(char *)frog_mask_5_bits},
{(char *)frog_mask_4_bits},{(char *)frog_mask_4_bits},
{(char *)frog_mask_4_bits},{(char *)frog_mask_4_bits},
{(char *)frog_mask_2_bits},{(char *)frog_mask_3_bits},
},
{/** PhysicalContext **/
10, /* health */
15, /* mass */
A_Frog, /* classId */
"frog", /* clas */
True, /* transmogifyTarget */
True, /* doppelUser */
False, /* potentialHuman */
False, /* potentialEnemy */
0, /* enemyWeight */
False, /* potentialWeapon */
False, /* potentialOtherItem */
0, /* objectWorldPercent */
Frog::get_size_max, /* get_size_max */
Frog::create, /* create */
False, /* statsCreations */
False, /* statsUses */
True, /* statsDeaths */
Frog::get_stats, /* get_stats */
},
},
};
const HoppingContext Frog::hoppingContext =
{ /** HoppingContext **/
0, /* dummy */
};
|