… | |
… | |
1621 | const_iv (KLASS_GLOBAL) |
1621 | const_iv (KLASS_GLOBAL) |
1622 | const_iv (KLASS_OBJECT) |
1622 | const_iv (KLASS_OBJECT) |
1623 | const_iv (KLASS_CLIENT) |
1623 | const_iv (KLASS_CLIENT) |
1624 | const_iv (KLASS_PLAYER) |
1624 | const_iv (KLASS_PLAYER) |
1625 | const_iv (KLASS_MAP) |
1625 | const_iv (KLASS_MAP) |
|
|
1626 | |
|
|
1627 | const_iv (ST_DEAD) |
|
|
1628 | const_iv (ST_SETUP) |
|
|
1629 | const_iv (ST_PLAYING) |
|
|
1630 | const_iv (ST_CUSTOM) |
|
|
1631 | |
|
|
1632 | const_iv (ST_PLAY_AGAIN) |
|
|
1633 | const_iv (ST_ROLL_STAT) |
|
|
1634 | const_iv (ST_CHANGE_CLASS) |
|
|
1635 | const_iv (ST_CONFIRM_QUIT) |
|
|
1636 | const_iv (ST_CONFIGURE) |
|
|
1637 | const_iv (ST_GET_NAME) |
|
|
1638 | const_iv (ST_GET_PASSWORD) |
|
|
1639 | const_iv (ST_CONFIRM_PASSWORD) |
|
|
1640 | const_iv (ST_GET_PARTY_PASSWORD) |
1626 | }; |
1641 | }; |
1627 | |
1642 | |
1628 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
1643 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
1629 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
1644 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
1630 | |
1645 | |
… | |
… | |
2137 | OUTPUT: RETVAL |
2152 | OUTPUT: RETVAL |
2138 | |
2153 | |
2139 | bool |
2154 | bool |
2140 | cell_visible (player *pl, int dx, int dy) |
2155 | cell_visible (player *pl, int dx, int dy) |
2141 | CODE: |
2156 | CODE: |
2142 | RETVAL = FABS (dx) <= pl->socket->mapx / 2 && FABS (dy) <= pl->socket->mapy / 2 |
2157 | RETVAL = FABS (dx) <= pl->ns->mapx / 2 && FABS (dy) <= pl->ns->mapy / 2 |
2143 | && !pl->blocked_los [dx + pl->socket->mapx / 2][dy + pl->socket->mapy / 2]; |
2158 | && !pl->blocked_los [dx + pl->ns->mapx / 2][dy + pl->ns->mapy / 2]; |
2144 | OUTPUT: |
2159 | OUTPUT: |
2145 | RETVAL |
2160 | RETVAL |
2146 | |
2161 | |
2147 | void |
2162 | void |
2148 | send (player *pl, SV *packet) |
2163 | send (player *pl, SV *packet) |
2149 | CODE: |
2164 | CODE: |
2150 | { |
2165 | { |
2151 | STRLEN len; |
2166 | STRLEN len; |
2152 | char *buf = SvPVbyte (packet, len); |
2167 | char *buf = SvPVbyte (packet, len); |
2153 | |
2168 | |
2154 | pl->socket->send_packet (buf, len); |
2169 | pl->ns->send_packet (buf, len); |
2155 | } |
2170 | } |
2156 | |
2171 | |
2157 | int |
2172 | int |
2158 | listening (player *pl, int new_value = -1) |
2173 | listening (player *pl, int new_value = -1) |
2159 | CODE: |
2174 | CODE: |