Debian Codegraph @

src/shots.h

raw symbols SCIP
1 /*
2 * OpenTyrian: A modern cross-platform port of Tyrian
3 * Copyright (C) 2007-2013 The OpenTyrian Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 #ifndef SHOTS_H
20 #define SHOTS_Hcxx . . $ `src/shots.h:20:9`!
21 #include "opentyr.h"cxx . . $ `<file>/src/opentyr.h`/
22
23 typedef structcxx . . $ $anonymous_type_fd5daa34a534a1d9_0# {
24 JE_integercxx . . $ JE_integer# shotXcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotX., shotYcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotY., shotXMcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotXM., shotYMcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotYM., shotXCcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotXC., shotYCcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotYC.;
25 JE_booleancxx . . $ JE_boolean# shotComplicatedcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotComplicated.;
26 JE_integercxx . . $ JE_integer# shotDevXcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotDevX., shotDirXcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotDirX., shotDevYcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotDevY., shotDirYcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotDirY., shotCirSizeXcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotCirSizeX., shotCirSizeYcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotCirSizeY.;
27 JE_bytecxx . . $ JE_byte# shotTrailcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotTrail.;
28 JE_wordcxx . . $ JE_word# shotGrcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotGr., shotAnicxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotAni., shotAniMaxcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotAniMax.;
29 Uint8cxx . . $ Uint8# shotDmgcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotDmg.;
30 JE_bytecxx . . $ JE_byte# shotBlastFiltercxx . . $ $anonymous_type_fd5daa34a534a1d9_0#shotBlastFilter., chainReactioncxx . . $ $anonymous_type_fd5daa34a534a1d9_0#chainReaction., playerNumbercxx . . $ $anonymous_type_fd5daa34a534a1d9_0#playerNumber., aimAtEnemycxx . . $ $anonymous_type_fd5daa34a534a1d9_0#aimAtEnemy., aimDelaycxx . . $ $anonymous_type_fd5daa34a534a1d9_0#aimDelay., aimDelayMaxcxx . . $ $anonymous_type_fd5daa34a534a1d9_0#aimDelayMax.;
31 } PlayerShotDataTypecxx . . $ PlayerShotDataType#;
32
33 #define MAX_PWEAPONcxx . . $ `src/shots.h:33:9`! 81 /* 81*/
34 extern PlayerShotDataTypecxx . . $ PlayerShotDataType# playerShotDatacxx . . $ playerShotData.[MAX_PWEAPONcxx . . $ `src/shots.h:33:9`! + 1];
35 extern JE_bytecxx . . $ JE_byte# shotAvailcxx . . $ shotAvail.[MAX_PWEAPONcxx . . $ `src/shots.h:33:9`!];
36
37 /** Used in the shop to show weapon previews. */
38 void simulate_player_shotscxx . . $ simulate_player_shots(49f6e7a06ebc5aa8).(void);
39
40 /** Points shot movement in the specified direction. Used for the turret gun. */
41 void player_shot_set_directioncxx . . $ player_shot_set_direction(29fe2bd0c19b8f3e).(JE_integercxx . . $ JE_integer# shot_id, uintcxx . . $ uint# weapon_id, JE_realcxx . . $ JE_real# direction);
42
43 /** Moves and draws a shot. Does \b not collide it with enemies.
44 * \return False if the shot went off-screen, true otherwise.
45 */
46 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! player_shot_move_and_drawcxx . . $ player_shot_move_and_draw(785db07d160ac3c9).(
47 int shot_id, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! *out_is_special,
48 int *out_shotx, int *out_shoty,
49 JE_integercxx . . $ JE_integer# *out_shot_damage, JE_bytecxx . . $ JE_byte# *out_blast_filter,
50 JE_bytecxx . . $ JE_byte# *out_chain, JE_bytecxx . . $ JE_byte# *out_playerNum,
51 JE_wordcxx . . $ JE_word# *out_special_radiusw, JE_wordcxx . . $ JE_word# *out_special_radiush);
52
53 /** Creates a player shot. */
54 JE_integercxx . . $ JE_integer# player_shot_createcxx . . $ player_shot_create(47a6dcf6307ecf82).(
55 JE_wordcxx . . $ JE_word# portnum, uintcxx . . $ uint# shot_i, JE_wordcxx . . $ JE_word# px, JE_wordcxx . . $ JE_word# py,
56 JE_wordcxx . . $ JE_word# mousex, JE_wordcxx . . $ JE_word# mousey,
57 JE_wordcxx . . $ JE_word# wpnum, JE_bytecxx . . $ JE_byte# playernum);
58
59 #endif // SHOTS_H