/dports/games/uqm/uqm-0.8.0/src/uqm/ |
H A D | collide.c | 30 collide (ELEMENT *ElementPtr0, ELEMENT *ElementPtr1) in collide() argument 38 - ElementPtr1->next.location.x; in collide() 40 - ElementPtr1->next.location.y; in collide() 67 ElementPtr1->next.location.x, ElementPtr1->next.location.y); in collide() 74 && ElementPtr1->next.location.x == ElementPtr1->current.location.x in collide() 75 && ElementPtr1->next.location.y == ElementPtr1->current.location.y) in collide() 82 ZeroVelocityComponents (&ElementPtr1->velocity); in collide() 99 mass1 = ElementPtr1->mass_points /* << 2 */; in collide() 139 if (!GRAVITY_MASS (ElementPtr1->mass_points + 1)) in collide() 141 if (ElementPtr1->state_flags & PLAYER_SHIP) in collide() [all …]
|
H A D | element.h | 101 ELEMENT *ElementPtr1, POINT *pPt1); 173 elementsOfSamePlayer (ELEMENT *ElementPtr0, ELEMENT *ElementPtr1) in elementsOfSamePlayer() argument 175 return ElementPtr0->playerNr == ElementPtr1->playerNr; in elementsOfSamePlayer() 225 ELEMENT *ElementPtr1, POINT *pPt1); 230 ELEMENT *ElementPtr1, COUNT max_turns, COUNT margin_of_error);
|
H A D | ipdisp.c | 487 ELEMENT *ElementPtr1, POINT *pPt1) in flag_ship_collision() argument 492 if (!(ElementPtr1->state_flags & COLLISION)) in flag_ship_collision() 499 ElementPtr1->state_flags &= ~COLLISION; in flag_ship_collision() 508 ELEMENT *ElementPtr1, POINT *pPt1) in ip_group_collision() argument 517 GetElementStarShip (ElementPtr1, &OtherPtr); in ip_group_collision() 522 || (ElementPtr1->current.location.x == ElementPtr1->next.location.x in ip_group_collision() 523 && ElementPtr1->current.location.y == ElementPtr1->next.location.y)) in ip_group_collision() 529 ElementPtr1->state_flags |= COLLISION; in ip_group_collision() 547 if (!(ElementPtr1->state_flags & COLLISION)) in ip_group_collision() 554 ElementPtr1->state_flags &= ~COLLISION; in ip_group_collision()
|
H A D | hyper.c | 580 - ElementPtr1->next.location.x); in init_transition() 582 - ElementPtr1->next.location.y); in init_transition() 584 ElementPtr1->state_flags |= NONSOLID; in init_transition() 586 ElementPtr1->postprocess_func = NULL; in init_transition() 670 ELEMENT *ElementPtr1, POINT *pPt1) in hyper_collision() argument 672 if ((ElementPtr1->state_flags & PLAYER_SHIP) in hyper_collision() 687 || (ElementPtr1->state_flags & APPEARING) in hyper_collision() 703 init_transition (ElementPtr0, ElementPtr1, in hyper_collision() 748 if (ElementPtr1->state_flags & DEFY_PHYSICS) in arilou_space_collision() 754 init_transition (ElementPtr0, ElementPtr1, in arilou_space_collision() [all …]
|
H A D | misc.c | 280 ELEMENT *ElementPtr1, POINT *pPt1) in crew_collision() argument 282 if ((ElementPtr1->state_flags & PLAYER_SHIP) in crew_collision() 283 && ElementPtr1->life_span >= NORMAL_LIFE in crew_collision() 288 GetElementStarShip (ElementPtr1, &StarShipPtr); in crew_collision() 291 ProcessSound (SetAbsSoundIndex (GameSounds, GRAB_CREW), ElementPtr1); in crew_collision() 292 DeltaCrew (ElementPtr1, 1); in crew_collision()
|
H A D | cyborg.c | 33 PlotIntercept (ELEMENT *ElementPtr0, ELEMENT *ElementPtr1, in PlotIntercept() argument 47 if (ElementPtr1->life_span < max_turns) in PlotIntercept() 48 max_turns = ElementPtr1->life_span; in PlotIntercept() 50 else if (!(ElementPtr1->state_flags & FINITE_LIFE)) in PlotIntercept() 59 if (ElementPtr1->life_span < max_turns) in PlotIntercept() 60 max_turns = ElementPtr1->life_span; in PlotIntercept() 69 dst[1] = ElementPtr1->current.location; in PlotIntercept() 219 Pt1 = ElementPtr1->current.location; in PlotIntercept() 220 Velocity1 = ElementPtr1->velocity; in PlotIntercept() 221 Control1 = ElementPtr1->IntersectControl; in PlotIntercept() [all …]
|
H A D | ship.h | 35 ELEMENT *ElementPtr1, POINT *pPt1);
|
H A D | weapon.h | 54 ELEMENT *ElementPtr1, POINT *pPt1);
|
H A D | collide.h | 64 extern void collide (ELEMENT *ElementPtr0, ELEMENT *ElementPtr1);
|
H A D | ship.c | 354 ELEMENT *ElementPtr1, POINT *pPt1) in collision() argument 356 if (!(ElementPtr1->state_flags & FINITE_LIFE)) in collision() 359 if (GRAVITY_MASS (ElementPtr1->mass_points)) in collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/lastbat/ |
H A D | lastbat.c | 191 ELEMENT *ElementPtr1, POINT *pPt1) in comet_collision() argument 193 if (ElementPtr1->playerNr == RPG_PLAYER_NUM) in comet_collision() 199 if (ElementPtr1->state_flags & PLAYER_SHIP) in comet_collision() 207 if (ElementPtr1->state_flags & PLAYER_SHIP) in comet_collision() 319 ELEMENT *ElementPtr1, POINT *pPt1) in gate_collision() argument 321 if (ElementPtr1->playerNr == RPG_PLAYER_NUM) in gate_collision() 344 if (ElementPtr1->state_flags & PLAYER_SHIP) in gate_collision() 456 ELEMENT *ElementPtr1, POINT *pPt1) in generator_collision() argument 606 ELEMENT *ElementPtr1, POINT *pPt1) in sentinel_collision() argument 611 if (ElementPtr1->playerNr == NPC_PLAYER_NUM) in sentinel_collision() [all …]
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/druuge/ |
H A D | druuge.c | 124 ELEMENT *ElementPtr1, POINT *pPt1) in cannon_collision() argument 126 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in cannon_collision() 128 if ((ElementPtr1->state_flags & PLAYER_SHIP) in cannon_collision() 129 && ElementPtr1->crew_level in cannon_collision() 130 && !GRAVITY_MASS (ElementPtr1->mass_points + 1)) in cannon_collision() 136 GetElementStarShip (ElementPtr1, &StarShipPtr); in cannon_collision() 143 DeltaVelocityComponents (&ElementPtr1->velocity, in cannon_collision() 146 GetCurrentVelocityComponents (&ElementPtr1->velocity, in cannon_collision() 153 SetVelocityComponents (&ElementPtr1->velocity, in cannon_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/chenjesu/ |
H A D | chenjesu.c | 218 ELEMENT *ElementPtr1, POINT *pPt1) in crystal_collision() argument 223 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in crystal_collision() 229 BlastElementPtr->current.location = ElementPtr1->current.location; in crystal_collision() 324 ELEMENT *ElementPtr1, POINT *pPt1) in doggy_collision() argument 326 collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in doggy_collision() 327 if ((ElementPtr1->state_flags & PLAYER_SHIP) in doggy_collision() 328 && !elementsOfSamePlayer (ElementPtr0, ElementPtr1)) in doggy_collision() 336 GetElementStarShip (ElementPtr1, &StarShipPtr); in doggy_collision() 338 DeltaEnergy (ElementPtr1, -StarShipPtr->RaceDescPtr->ship_info.energy_level); in doggy_collision() 340 DeltaEnergy (ElementPtr1, -ENERGY_DRAIN); in doggy_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/mycon/ |
H A D | mycon.c | 184 ELEMENT *ElementPtr1, POINT *pPt1) in plasma_collision() argument 190 if ((ElementPtr0->pParent != ElementPtr1->pParent in plasma_collision() 191 || (ElementPtr1->state_flags & PLAYER_SHIP)) in plasma_collision() 193 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1))) in plasma_collision() 200 if (!(ElementPtr1->state_flags & PLAYER_SHIP)) in plasma_collision() 206 GetElementStarShip (ElementPtr1, &StarShipPtr); in plasma_collision() 210 BlastElementPtr->current.location = ElementPtr1->current.location; in plasma_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/orz/ |
H A D | orz.c | 137 ELEMENT *ElementPtr1, POINT *pPt1) in howitzer_collision() argument 736 ELEMENT *ElementPtr1, POINT *pPt1) in marine_collision() argument 751 if (GRAVITY_MASS (ElementPtr1->mass_points)) in marine_collision() 759 || ElementPtr1->life_span == NORMAL_LIFE)) in marine_collision() 761 ElementPtr1->state_flags &= ~COLLISION; in marine_collision() 765 DeltaCrew (ElementPtr1, 1); in marine_collision() 773 && ElementPtr1->crew_level in marine_collision() 783 if (!DeltaCrew (ElementPtr1, -1)) in marine_collision() 784 ElementPtr1->life_span = 0; in marine_collision() 803 ModifySilhouette (ElementPtr1, &s, 0); in marine_collision() [all …]
|
H A D | orz.h | 28 ELEMENT *ElementPtr1, POINT *pPt1);
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/utwig/ |
H A D | utwig.c | 264 ELEMENT *ElementPtr1, POINT *pPt1) in utwig_collision() argument 267 && (ElementPtr1->state_flags & FINITE_LIFE) in utwig_collision() 268 && ElementPtr1->mass_points) in utwig_collision() 269 ElementPtr0->life_span += ElementPtr1->mass_points; in utwig_collision() 271 collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in utwig_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/vux/ |
H A D | vux.c | 158 ELEMENT *ElementPtr1, POINT *pPt1) in limpet_collision() argument 160 if (ElementPtr1->state_flags & PLAYER_SHIP) in limpet_collision() 166 GetElementStarShip (ElementPtr1, &StarShipPtr); in limpet_collision() 193 StarShipPtr->RaceDescPtr->ship_data.ship_sounds, 2), ElementPtr1); in limpet_collision() 197 ModifySilhouette (ElementPtr1, &s, MODIFY_IMAGE); in limpet_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/urquan/ |
H A D | urquan.c | 310 ELEMENT *ElementPtr1, POINT *pPt1) in fighter_collision() argument 315 if (GRAVITY_MASS (ElementPtr1->mass_points)) in fighter_collision() 368 else if (ElementPtr0->pParent != ElementPtr1->pParent) in fighter_collision() 371 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in fighter_collision() 374 else if (ElementPtr1->state_flags & PLAYER_SHIP) in fighter_collision() 378 StarShipPtr->RaceDescPtr->ship_data.ship_sounds, 3), ElementPtr1); in fighter_collision() 379 DeltaCrew (ElementPtr1, 1); in fighter_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/blackurq/ |
H A D | blackurq.c | 261 ELEMENT *ElementPtr1, POINT *pPt1) in buzzsaw_collision() argument 263 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in buzzsaw_collision() 463 ELEMENT *ElementPtr1, POINT *pPt1) in gas_cloud_collision() argument 465 if (ElementPtr1->state_flags & PLAYER_SHIP) in gas_cloud_collision() 470 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in gas_cloud_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/melnorme/ |
H A D | melnorme.c | 275 ELEMENT *ElementPtr1, POINT *pPt1) in pump_up_collision() argument 285 hBlastElement = weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in pump_up_collision() 414 ELEMENT *ElementPtr1, POINT *pPt1) in confusion_collision() argument 416 if (ElementPtr1->state_flags & PLAYER_SHIP) in confusion_collision() 461 GetElementStarShip (ElementPtr1, &StarShipPtr); in confusion_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/mmrnmhrm/ |
H A D | mmrnmhrm.c | 294 ELEMENT *ElementPtr1, POINT *pPt1) in twin_laser_collision() argument 296 if (!(ElementPtr1->state_flags & PLAYER_SHIP) in twin_laser_collision() 297 || !elementsOfSamePlayer (ElementPtr0, ElementPtr1)) in twin_laser_collision() 298 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in twin_laser_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/androsyn/ |
H A D | androsyn.c | 170 ELEMENT *ElementPtr1, POINT *pPt1) in blazer_collision() argument 181 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in blazer_collision() 188 collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in blazer_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/zoqfot/ |
H A D | zoqfot.c | 196 ELEMENT *ElementPtr1, POINT *pPt1) in tongue_collision() argument 203 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in tongue_collision()
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ships/ilwrath/ |
H A D | ilwrath.c | 143 ELEMENT *ElementPtr1, POINT *pPt1) in flame_collision() argument 145 weapon_collision (ElementPtr0, pPt0, ElementPtr1, pPt1); in flame_collision()
|