Home
last modified time | relevance | path

Searched refs:ship (Results 1 – 25 of 3003) sorted by relevance

12345678910>>...121

/dports/games/powermanga/powermanga-0.93.1/src/
H A Dspaceship.c204 if (ship->spr.energy_level < ship->spr.pow_of_dest) in spaceship_energy_restore()
310 ship->fire_rate = 50 - (ship->type * 5 + 5); in spaceship_initialize()
340 ship->spr.energy_level = ship->spr.pow_of_dest; in spaceship_initialize()
385 ship_img = ship->spr.img[ship->spr.current_image]; in spaceship_gameover()
438 ship->fire_rate = 50 - (ship->type * 5 + 5); in spaceship_downgrading()
611 ship->fire_rate = 50 - (ship->type * 5 + 5); in spaceship_upgrading()
629 ship->spr.energy_level = ship->spr.pow_of_dest; in spaceship_upgrading()
836 if (ship->y_speed > ship->speed_booster) in spaceship_speed_control()
840 if (ship->y_speed < (-ship->speed_booster)) in spaceship_speed_control()
849 ship->spr.xcoord += ship->x_speed; in spaceship_speed_control()
[all …]
H A Dspecial_keys.c60 ship->shot_front_basic++; in special_keys()
67 ship->shot_left_basic++; in special_keys()
74 ship->shot_right_basic++; in special_keys()
81 ship->shot_rear_basic++; in special_keys()
88 ship->shot_front_enhanced++; in special_keys()
95 ship->shot_left_enhanced++; in special_keys()
113 ship->shot_rear_enhanced++; in special_keys()
177 ship->shot_front_basic--; in special_keys()
186 ship->shot_left_basic--; in special_keys()
195 ship->shot_right_basic--; in special_keys()
[all …]
H A Doptions_panel.c356 if (ship->gems_count > 11) in option_execution()
359 ship->gems_count = 0; in option_execution()
388 switch (ship->gems_count) in option_execution()
415 if (ship->spr.energy_level != ship->spr.pow_of_dest) in option_execution()
628 ship->gems_count = 0; in options_check_selected()
649 if (ship->spr.energy_level != ship->spr.pow_of_dest) in options_check_selected()
653 if (ship->spr.energy_level > ship->spr.pow_of_dest) in options_check_selected()
655 ship->spr.energy_level = ship->spr.pow_of_dest; in options_check_selected()
658 ship->gems_count = 0; in options_check_selected()
660 if (ship->spr.energy_level == ship->spr.pow_of_dest) in options_check_selected()
[all …]
/dports/games/luola/luola-1.3.2/src/
H A Dship.c265 surf = ship->ship[pose]; in draw_ships()
399 targ = find_nearest_ship (ship->physics.x, ship->physics.y, ship, &d); in remote_control()
492 if(ship->health<0) ship->health=0; in damage_ship()
503 if (ship->health < 1 && !ship->shieldup) { in service_ship()
521 if (!ship->shieldup && !ship->repairing in service_ship()
547 ship->angle += ship->turn; in animate_ships()
776 ship->ship = ship_gfx[ship->color]; in claim_ship()
889 ship->ship = ghost_gfx[ship->color - 1]; in ghostify()
891 ship->ship = ship_gfx[ship->color]; in ghostify()
922 surf = ship->ship[p]; in cloaking_device()
[all …]
H A Dweapon.c57 Vector mvel = get_muzzle_vel(ship->angle+ship->sweep_angle); in fire_sweep()
58 if((ship->sweep_angle >= -0.40) && (ship->sweeping_down)) { in fire_sweep()
135 add_projectile(make_ember(ship->physics.x,ship->physics.y+11, in drop_ember()
147 ship->physics.vel.y += sin (ship->angle) * 5.0; in fire_shotgun()
212 ship->shieldup = new_ga_link(&ship->physics.x,&ship->physics.y, in toggle_shield()
239 drop_jumppoint(ship->physics.x, ship->physics.y, find_player(ship)); in drop_warp()
248 ship->physics.vel.x += cos(ship->angle) * 30.0; in start_darting()
249 ship->physics.vel.y -= sin(ship->angle) * 30.0; in start_darting()
254 if (ship->repairing == 0 && ship->energy > 0 && ship->health < 1) in toggle_autorepair()
302 target = find_nearest_ship(ship->physics.x,ship->physics.y, ship, &d); in zapper()
[all …]
/dports/games/freeciv/freeciv-2.6.6/common/
H A Dspaceship.c98 ship->structurals = ship->components = ship->modules = 0; in spaceship_init()
100 ship->fuel = ship->propulsion = 0; in spaceship_init()
101 ship->habitation = ship->life_support = ship->solar_panels = 0; in spaceship_init()
105 ship->population = ship->mass = 0; in spaceship_init()
106 ship->support_rate = ship->energy_rate = in spaceship_init()
131 if (ship->modules > (ship->habitation + ship->life_support in next_spaceship_component()
141 && (ship->solar_panels*2 >= ship->habitation + ship->life_support + 1)) in next_spaceship_component()
143 (ship->solar_panels*2 < ship->habitation + ship->life_support) in next_spaceship_component()
148 && (ship->solar_panels * 2 >= ship->habitation + ship->life_support + 1)) in next_spaceship_component()
163 if (ship->components > ship->fuel + ship->propulsion) { in next_spaceship_component()
[all …]
/dports/games/freeciv-nox11/freeciv-2.6.6/common/
H A Dspaceship.c98 ship->structurals = ship->components = ship->modules = 0; in spaceship_init()
100 ship->fuel = ship->propulsion = 0; in spaceship_init()
101 ship->habitation = ship->life_support = ship->solar_panels = 0; in spaceship_init()
105 ship->population = ship->mass = 0; in spaceship_init()
106 ship->support_rate = ship->energy_rate = in spaceship_init()
131 if (ship->modules > (ship->habitation + ship->life_support in next_spaceship_component()
141 && (ship->solar_panels*2 >= ship->habitation + ship->life_support + 1)) in next_spaceship_component()
143 (ship->solar_panels*2 < ship->habitation + ship->life_support) in next_spaceship_component()
148 && (ship->solar_panels * 2 >= ship->habitation + ship->life_support + 1)) in next_spaceship_component()
163 if (ship->components > ship->fuel + ship->propulsion) { in next_spaceship_component()
[all …]
/dports/games/freeciv/freeciv-2.6.6/server/
H A Dspacerace.c61 ship->support_rate = ship->energy_rate = in spaceship_calc_derived()
62 ship->success_rate = ship->travel_time = 0.0; in spaceship_calc_derived()
110 MIN(ship->support_rate, 1.0) * MIN(ship->energy_rate, 1.0); in spaceship_calc_derived()
119 ship->travel_time = ship->mass in spaceship_calc_derived()
193 arrival = ship->launch_year + (int) ship->travel_time; in handle_spaceship_launch()
273 if (ship->fuel + ship->propulsion >= ship->components) { in do_spaceship_place()
301 if (ship->fuel + ship->propulsion >= ship->components) { in do_spaceship_place()
330 if (ship->habitation + ship->life_support + ship->solar_panels in do_spaceship_place()
359 if (ship->habitation + ship->life_support + ship->solar_panels in do_spaceship_place()
388 if (ship->habitation + ship->life_support + ship->solar_panels in do_spaceship_place()
[all …]
/dports/games/freeciv-nox11/freeciv-2.6.6/server/
H A Dspacerace.c61 ship->support_rate = ship->energy_rate = in spaceship_calc_derived()
62 ship->success_rate = ship->travel_time = 0.0; in spaceship_calc_derived()
110 MIN(ship->support_rate, 1.0) * MIN(ship->energy_rate, 1.0); in spaceship_calc_derived()
119 ship->travel_time = ship->mass in spaceship_calc_derived()
193 arrival = ship->launch_year + (int) ship->travel_time; in handle_spaceship_launch()
273 if (ship->fuel + ship->propulsion >= ship->components) { in do_spaceship_place()
301 if (ship->fuel + ship->propulsion >= ship->components) { in do_spaceship_place()
330 if (ship->habitation + ship->life_support + ship->solar_panels in do_spaceship_place()
359 if (ship->habitation + ship->life_support + ship->solar_panels in do_spaceship_place()
388 if (ship->habitation + ship->life_support + ship->solar_panels in do_spaceship_place()
[all …]
/dports/games/pioneer/pioneer-20210723/data/modules/TradeShips/
H A DTrader.lua26 ship:AddEquip(e.misc.radar)
62 local empty_space = math.min(ship.freeCapacity, ship:GetEquipFree("cargo"))
100 if Core.ships[ship] then
117 local max_range = ship:GetEquip('engine', 1):GetMaximumRange(ship)
197 return jumpToSystem(ship, getSystem(ship))
202 return math.min(ship.freeCapacity, ship:GetEquipFree("cargo"))
278 if ship:exists() and ship:GetDockedWith() then
292 if ship:exists() and ship.flightState ~= 'HYPERSPACE' then
325 Trader.addEquip(ship)
326 Trader.addFuel(ship)
[all …]
H A DEvents.lua48 if ship:IsPlayer() then
73 if ship:IsPlayer() then
100 if not ship:isa("Ship") or Core.ships[ship] == nil then return end
102 Core.log:add(ship, "Entered frame " .. (ship.frameBody and ship.frameBody:GetLabel() or "unknown"))
106 ship:CancelAI()
140 ship:SetHullPercent()
141 Trader.addEquip(ship)
143 Trader.addFuel(ship)
144 ship:SetFuelPercent()
191 Core.log:add(ship, 'Landed: '..Core.ships[ship].starport.label)
[all …]
/dports/games/endless-sky/endless-sky-0.9.14/source/
H A DAI.cpp55 return ship.GetSystem() && !ship.IsEnteringHyperspace() && !ship.GetSystem()->HasFuelFor(ship) in IsStranded()
56 && ship.JumpFuel() && ship.Attributes().Get("fuel capacity") && !ship.JumpsRemaining(); in IsStranded()
134 return ship->CanBeCarried() && !ship->IsParked() && !ship->IsDestroyed(); in IssueDeploy()
149 if(ship && ship->IsYours() && isCandidate(ship)) in IssueDeploy()
178 if(bay.ship && bay.ship->HasDeployOrder()) in HasDeployments()
214 if(!to || ship.Fuel() == 1. || !ship.GetSystem()->HasFuelFor(ship)) in ShouldRefuel()
1168 ship.Position() + 60. * ship.Velocity()); in FindTarget()
1518 SelectRoute(ship, ship.GetTargetSystem()); in MoveIndependent()
1743 return TurnToward(ship, -ship.Velocity()); in TurnBackward()
2093 if(!ship.IsYours() && ship.HasBays()) in Attack()
[all …]
/dports/games/cave9/cave9-e6896eb/src/
H A Dgame.c154 SET (ship->pos, 0,0,ship->start); in ship_init()
161 ship->lefton = ship->righton = false; in ship_init()
244 ADDSCALE(ship->pos, ship->vel, dt); in ship_move()
248 SUB2 (d, ship->vel, ship->lookAt); in ship_move()
285 ship->lefton = ship->righton = (ship->lefton | ship->righton); in digger_control()
300 ship->lefton = ship->righton = false; in digger_control()
397 if(X(cave, i, ship->pos[0] - ship->radius, ship->pos[1], j0, j1) > 0) in collision()
400 if(X(cave, i, ship->pos[0], ship->pos[1] + ship->radius, j0, j1) > 0) in collision()
403 if(X(cave, i, ship->pos[0] + ship->radius, ship->pos[1], j0, j1) > 0) in collision()
406 if(X(cave, i, ship->pos[0], ship->pos[1] - ship->radius, j0, j1) > 0) in collision()
[all …]
/dports/games/emptyepsilon/EmptyEpsilon-EE-2021.06.23/src/
H A DgameStateLogger.cpp271 P<SpaceShip> ship = obj; in writeObjectEntry() local
273 if (ship) in writeObjectEntry()
315 if (ship->target_id > -1) in writeShipEntry()
317 if (ship->docking_state != DS_NotDocking && ship->docking_target) in writeShipEntry()
324 if (ship->shield_count > 0) in writeShipEntry()
404 if (ship->has_warp_drive) in writeShipEntry()
414 if (ship->has_warp_drive) in writeShipEntry()
416 if (ship->combat_maneuver_boost_speed > 0 || ship->combat_maneuver_strafe_speed > 0) in writeShipEntry()
422 if (ship->has_jump_drive) in writeShipEntry()
442 if (ship->has_warp_drive) in writeShipEntry()
[all …]
/dports/games/starfighter/starfighter-2.4/src/
H A Dship.c40 float x0 = ship->x; in ship_collision()
41 float y0 = ship->y; in ship_collision()
80 audio_playSound(SFX_PLASMA, ship->x, ship->y); in ship_fireBullet()
83 audio_playSound(SFX_MISSILE, ship->x, ship->y); in ship_fireBullet()
86 audio_playSound(SFX_LASER, ship->x, ship->y); in ship_fireBullet()
89 audio_playSound(SFX_PLASMA3, ship->x, ship->y); in ship_fireBullet()
133 if ((ship->flags & FL_WEAPCO) && (ship != &aliens[ALIEN_BOSS]) in ship_fireBullet()
155 if (ship->face == 0) in ship_fireRay()
157 ray.x = (int)(ship->x + ship->image[0]->w); in ship_fireRay()
163 ray.y = (int)(ship->y + ship->engineY - 1); in ship_fireRay()
[all …]
/dports/games/xpilot-ng-server/xpilot-ng-4.7.3/src/common/
H A Dshipshape.c990 ship->num_orig_points = ship->num_points; in shape2wire()
998 ship->num_points = ship->num_points * 2; in shape2wire()
1038 ship->pts[i] = &ship->pts[i - 1][RES]; in shape2wire()
1041 ship->l_gun[i] = &ship->l_gun[i - 1][RES]; in shape2wire()
1044 ship->r_gun[i] = &ship->r_gun[i - 1][RES]; in shape2wire()
1047 ship->l_rgun[i] = &ship->l_rgun[i - 1][RES]; in shape2wire()
1050 ship->r_rgun[i] = &ship->r_rgun[i - 1][RES]; in shape2wire()
1059 ship->m_rack[i] = &ship->m_rack[i - 1][RES]; in shape2wire()
1134 if (ship->name) free(ship->name); in Free_ship_shape()
1135 if (ship->author) free(ship->author); in Free_ship_shape()
[all …]
H A Dshipshape.h112 extern void Free_ship_shape(shipshape_t *ship);
126 return ship->pts[i][dir]; in Ship_get_point_clpos()
131 return ship->engine[dir]; in Ship_get_engine_clpos()
136 return ship->m_gun[dir]; in Ship_get_m_gun_clpos()
141 return ship->l_gun[gun][dir]; in Ship_get_l_gun_clpos()
146 return ship->r_gun[gun][dir]; in Ship_get_r_gun_clpos()
151 return ship->l_rgun[gun][dir]; in Ship_get_l_rgun_clpos()
156 return ship->r_rgun[gun][dir]; in Ship_get_r_rgun_clpos()
161 return ship->l_light[l][dir]; in Ship_get_l_light_clpos()
166 return ship->r_light[l][dir]; in Ship_get_r_light_clpos()
[all …]
/dports/games/pyspacewar/pyspacewar-1.1.1/src/pyspacewar/
H A Dai.py13 def __init__(self, ship): argument
14 self.ship = ship
15 self.rng = ship.world.rng
28 for ship in self.ship.world.objects:
31 if ship is self.ship or ship is self.enemy or ship.dead:
33 dist = self.ship.distance_to(ship)
35 enemy = ship
39 if self.ship.dead:
46 self.ship.brake()
85 self.ship.brake()
[all …]
/dports/games/xpilot/xpilot-4.5.5/lib/
H A Drobots3 ship: (15,8,7)(15,0)(7,1)(7,2)(2,4)(-1,11)(-3,11)(-2,3)(-8,6)(-8,-6)(-2,-3)(-3,-11)(-1,-11)(2,-4)(7…
13 ship: (4,1,3)(15,0)(0,8)(-8,0)(0,-8)
33 ship: (14,0,5)(15,0)(15,5)(5,5)(5,-5)(15,-5)(15,0)(-15,0)(-15,5)(5,5)(5,-5)(-15,-5)(-15,-8)(-15,8)(…
38 ship: (5,2,3)(15,0)(0,12)(-9,8)(-9,-8)(0,-12)
58 ship: (6,2,4)(15,0)(0,2)(-9,8)(-3,0)(-9,-8)(0,-2)
63 ship: (7,2,4)(10,0)(5,9)(-6,9)(-11,0)(-6,-9)(5,-9)(10,0)
68 ship: (6,2,4)(15,0)(0,2)(-9,8)(-3,0)(-9,-8)(0,-2)
98 ship: (6,1,4)(10,0)(-10,6)(2,-10)(2,10)(-10,-6)(10,0)
123 ship: (11,5,6)(8,0)(5,8)(3,12)(0,15)(0,0)(-8,3)(-8,-3)(0,0)(0,-15)(3,-12)(5,-8)
163 ship: (12,4,8)(4,0)(2,4)(-5,11)(10,12)(-8,12)(-4,6)(-2,0)(-4,-6)(-8,-12)(10,-12)(-5,-11)(2,-4)
[all …]
/dports/devel/allegro/allegro-4.4.3.1/examples/
H A Dexstars.c66 MODEL ship; variable
239 ship.x = ship.y = 0; in init_ship()
241 ship.rx = ship.ry = ship.rz = 0; in init_ship()
260 ship.maxx = ship.maxy = 0; in draw_ship()
262 get_rotation_matrix(&m, ship.rx, ship.ry, ship.rz); in draw_ship()
263 apply_matrix(&m, ship.aim.x, ship.aim.y, ship.aim.z, in draw_ship()
271 ship.faces[i].normal.z, &ship.faces[i].rnormal.x, in draw_ship()
274 get_transformation_matrix(&m, itofix(1), ship.rx, ship.ry, ship.rz, in draw_ship()
275 ship.x, ship.y, ship.z); in draw_ship()
278 apply_matrix(&m, ship.points[i].x, ship.points[i].y, ship.points[i].z, in draw_ship()
[all …]
/dports/games/naev/naev-0.7.0/src/
H A Dland_shipyard.c181 Ship* ship; in shipyard_update() local
279 ship->shield, ship->shield_regen, in shipyard_update()
280 ship->armour, ship->armour_regen, in shipyard_update()
281 ship->energy, ship->energy_regen, in shipyard_update()
338 Ship* ship; in shipyard_buy() local
373 Ship* ship; in shipyard_canBuy() local
417 Ship* ship; in can_swap() local
440 Ship* ship; in shipyard_canTrade() local
474 Ship* ship; in shipyard_trade() local
503 player.p->ship->name, buf2, ship->name, buf4)==0) in shipyard_trade()
[all …]
/dports/games/widelands/widelands-build21/src/wui/
H A Dshipwindow.cc59 ship_(ship), in ShipWindow()
188 if (ship == nullptr) { in set_button_visibility()
204 if (ship == nullptr) { in no_port_error_message()
223 if (ship == nullptr) { in think()
294 if (ship == nullptr) { in act_goto()
303 if (ship == nullptr) { in act_destination()
315 if (ship == nullptr) { in act_sink()
328 if (ship == nullptr) { in act_debug()
337 if (ship == nullptr) { in act_cancel_expedition()
350 if (ship == nullptr) { in act_scout_towards()
[all …]
/dports/games/vor/vor-0.5.8/
H A Dmain.c598 kill_ship(struct ship *ship) in kill_ship() argument
608 ship->dx = (ship->dx < 0) ? -sqrt(-ship->dx) : sqrt(ship->dx); in kill_ship()
609 ship->dy = (ship->dy < 0) ? -sqrt(-ship->dy) : sqrt(ship->dy); in kill_ship()
618 ship->dx = BARRIER_SPEED; ship->dy = 0; in kill_ship()
796 tmp = (ship.y+ship.h/2 + ship.dy*t_frame - YSCROLLTO)/25 + (ship.dy-screendy); in gameloop()
798 tmp = (ship.x+ship.w/2 + ship.dx*t_frame - XSCROLLTO)/25 + (ship.dx-screendx); in gameloop()
814 if(ship.x < 0 || ship.x+ship.w > XSIZE) { in gameloop()
817 ship.x = fconstrain(ship.x, XSIZE - ship.w); in gameloop()
821 if(ship.y < 0 || ship.y+ship.h > YSIZE) { in gameloop()
824 ship.y = fconstrain(ship.y, YSIZE - ship.h); in gameloop()
[all …]
/dports/games/wolfpack/empire-4.4.1/src/lib/commands/
H A Dpayo.c45 struct shpstr ship; in c_payoff() local
54 while (nxtitem(&ni, &ship)) { in c_payoff()
57 mp = &mchr[(int)ship.shp_type]; in c_payoff()
68 pr("%3d ", ship.shp_own); in c_payoff()
71 if (ship.shp_own != ship.shp_orig_own && !player->god) { in c_payoff()
74 prxy("%4d,%-4d ", ship.shp_x, ship.shp_y); in c_payoff()
78 prxy("%4d,%-4d ", ship.shp_orig_x, ship.shp_orig_y); in c_payoff()
79 prxy("%4d,%-4d ", ship.shp_x, ship.shp_y); in c_payoff()
81 getsect(ship.shp_x, ship.shp_y, &sect); in c_payoff()
83 dist = mapdist(ship.shp_x, ship.shp_y, in c_payoff()
[all …]
H A Dshi.c43 struct shpstr ship; in c_ship() local
58 if (ship.shp_off) in c_ship()
61 pr("%3d ", ship.shp_own); in c_ship()
64 prxy("%4d,%-4d ", ship.shp_x, ship.shp_y); in c_ship()
65 pr("%1.1s", &ship.shp_fleet); in c_ship()
66 pr(" %c%3d%%", ship.shp_off ? '!' : ' ', ship.shp_effic); in c_ship()
70 pr("%4d", ship.shp_item[I_UW]); in c_ship()
75 pr("%3d", shp_nland(&ship)); in c_ship()
76 pr("%4d", ship.shp_mobil); in c_ship()
77 pr("%5d\n", ship.shp_tech); in c_ship()
[all …]

12345678910>>...121