/dports/games/legend-of-edgar/edgar-1.34/src/enemy/ |
H A D | jumping_slime.c | 140 e->dirX /= 10; in redDie() 168 self->dirX = 0; in dropPurpleSlimes() 459 float dirX; in creditsMove() local 490 dirX = self->dirX; in creditsMove() 494 if (self->dirX == 0 && dirX != 0) in creditsMove() 503 float dirX; in creditsPurpleMove() local 555 dirX = self->dirX; in creditsPurpleMove() 559 if (self->dirX == 0 && dirX != 0) in creditsPurpleMove() 567 float dirX; in creditsRedMove() local 607 dirX = self->dirX; in creditsRedMove() [all …]
|
H A D | splitter.c | 411 e->dirX /= 10; in takeDamage() 428 e->dirX /= 10; in takeDamage() 613 float dirX; in largeCreditsMove() local 684 dirX = self->dirX; in largeCreditsMove() 688 if (self->dirX == 0 && dirX != 0) in largeCreditsMove() 696 float dirX; in mediumCreditsMove() local 763 dirX = self->dirX; in mediumCreditsMove() 767 if (self->dirX == 0 && dirX != 0) in mediumCreditsMove() 775 float dirX; in smallCreditsMove() local 804 dirX = self->dirX; in smallCreditsMove() [all …]
|
H A D | bat.c | 111 self->dirX = self->speed; in fly() 135 self->dirX = 0; in fly() 143 if (self->dirX < 0) in fly() 148 else if (self->dirX > 0) in fly() 167 if (self->dirX == 0) in fly() 182 self->dirX = 0; in fly() 231 self->dirX = 0; in dartDownFinish() 256 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in dartDownFinish() 269 self->dirX = 0; in dartReactToBlock() 291 self->dirX = self->speed; in creditsMove() [all …]
|
H A D | spirit.c | 72 float dirX; in lookForPlayer() local 78 self->dirX = 0; in lookForPlayer() 81 if (self->dirX == 0) in lookForPlayer() 88 dirX = self->dirX; in lookForPlayer() 92 if (self->dirX == 0 && dirX != 0) in lookForPlayer() 153 e->dirX *= 6; in die() 177 self->dirX *= 6; in moveRandomly() 185 self->x += self->dirX; in moveRandomly() 188 self->dirX *= 0.95; in moveRandomly() 204 self->dirX *= 6; in moveAboveBottle() [all …]
|
H A D | chicken.c | 116 float dirX; in wander() local 122 if (self->dirX == 0) in wander() 131 self->dirX = 0; in wander() 149 if (self->dirX < 0) in wander() 154 else if (self->dirX > 0) in wander() 159 dirX = self->dirX; in wander() 163 self->dirX = 0; in wander() 168 if (self->dirX == 0 && dirX != 0) in wander() 172 self->dirX = -dirX; in wander() 193 self->dirX = 0; in moveToFood() [all …]
|
H A D | spike_wall.c | 100 self->dirX = 0; in followTargets() 104 if (self->dirX == 0 && self->dirY == 0) in followTargets() 132 float dirX; in moveStartEnd() local 136 dirX = self->dirX; in moveStartEnd() 146 self->dirX = 0; in moveStartEnd() 149 if (self->dirX == 0) in moveStartEnd() 151 self->dirX = (dirX > 0 ? -self->speed : self->speed); in moveStartEnd() 163 float dirX; in move() local 167 dirX = self->dirX; in move() 173 if (self->dirX == 0) in move() [all …]
|
H A D | sludge.c | 126 self->dirX = 0; in wander() 165 self->dirX = 0; in teleportAttack() 176 self->dirX = 0; in teleportAttack() 273 self->dirX = 0; in lookForPlayer() 285 self->dirX = 0; in takeDamage() 331 self->dirX = 0; in redTeleportAttack() 349 self->dirX = 0; in redTeleportAttack() 360 self->dirX = 0; in redTeleportAttack() 522 float dirX; in creditsMove() local 542 dirX = self->dirX; in creditsMove() [all …]
|
H A D | buzz_saw.c | 64 if (self->dirX == 0) in move() 80 self->dirX = 0; in move() 85 if (self->dirX < 0 && self->x <= self->startX) in move() 89 self->dirX = 0; in move() 98 self->dirX = 0; in move() 117 e->dirX = prand() % 20; in draw() 122 e->dirX *= -1; in draw() 125 e->dirX /= 10; in draw() 141 e->dirX = prand() % 20; in draw() 146 e->dirX *= -1; in draw() [all …]
|
H A D | rampaging_master_tortoise.c | 131 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in walk() 152 self->dirX = 0; in walk() 297 self->dirX = 0; in takeDamage() 372 self->dirX = 0; in riftMove() 461 e->dirX *= 8; in addRiftEnergy() 510 e->dirX = 1; in riftTouch() 631 self->dirX = self->dirX < 0 ? 3 : -3; in spinAttack() 836 e->dirX = 0; in addSparkles() 870 float dirX; in creditsMove() local 894 dirX = self->dirX; in creditsMove() [all …]
|
H A D | centurion.c | 309 self->dirX = 0; in explosionMove() 325 self->dirX = 0; in explosionTouch() 460 self->dirX = 0; in redDie() 577 self->dirX = 0; in pieceWait() 671 float dirX; in creditsMove() local 689 self->dirX = 0; in creditsMove() 697 dirX = self->dirX; in creditsMove() 701 if (self->dirX == 0 && dirX != 0) in creditsMove() 709 float dirX; in redCreditsMove() local 737 dirX = self->dirX; in redCreditsMove() [all …]
|
H A D | poltergiest.c | 114 float dirX; in bookLookForPlayer() local 123 dirX = self->dirX; in bookLookForPlayer() 127 if (self->dirX == 0 && dirX != 0) in bookLookForPlayer() 151 float dirX; in throwBooks() local 169 dirX = self->dirX; in throwBooks() 173 if (self->dirX == 0 && dirX != 0) in throwBooks() 194 self->dirX = 0; in throwBooks() 203 self->dirX = 0; in recreateBooks() 364 self->dirX = 0; in bookReactToBlock() 373 self->dirX = 0; in bookAttackEnd() [all …]
|
H A D | red_grub.c | 84 if (self->dirX == 0 || isAtEdge(self) == TRUE) in lookForPlayer() 95 self->dirX = 0; in lookForPlayer() 148 if (self->dirX == 0 || isAtEdge(self)) in spinAttack() 150 if (self->dirX == 0) in spinAttack() 152 self->dirX = self->face == LEFT ? 5 : -5; in spinAttack() 157 self->dirX = self->dirX < 0 ? 5 : -5; in spinAttack() 189 self->dirX = 0; in spinAttackEnd() 203 self->dirX = 0; in reactToBlock() 208 self->dirX = self->speed; in creditsMove() 216 self->dirX = 0; in creditsMove() [all …]
|
H A D | book.c | 92 float dirX; in lookForPlayer() local 94 if (self->dirX == 0) in lookForPlayer() 101 dirX = self->dirX; in lookForPlayer() 105 if (self->dirX == 0 && dirX != 0) in lookForPlayer() 125 self->dirX = 0; in lookForPlayer() 155 self->dirX = 0; in lookForPlayer() 208 self->dirX = 0; in dartDownFinish() 248 self->dirX = 0; in dartReactToBlock() 392 self->dirX = 0; in fireBlock() 575 e->dirX = -3; in lightningBolt() [all …]
|
H A D | ice_tortoise.c | 90 self->dirX = 0; in walk() 108 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in changeWalkDirectionStart() 123 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in changeWalkDirection() 149 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in entityWait() 156 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in changeWalkDirectionFinish() 173 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in iceAttackStart() 207 e->dirX = 2; in createIce() 231 e->dirX = -2; in createIce() 254 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in iceAttack() 276 self->dirX = self->standingOn == NULL ? 0 : self->standingOn->dirX; in iceAttackFinish() [all …]
|
H A D | summoner.c | 75 float dirX; in lookForPlayer() local 79 if (self->dirX == 0) in lookForPlayer() 81 self->dirX = self->face == LEFT ? self->speed : -self->speed; in lookForPlayer() 84 self->face = self->dirX > 0 ? RIGHT : LEFT; in lookForPlayer() 86 dirX = self->dirX; in lookForPlayer() 90 if (self->dirX == 0 && dirX != 0) in lookForPlayer() 92 self->dirX = self->face == LEFT ? self->speed : -self->speed; in lookForPlayer() 109 self->dirX = 0; in lookForPlayer() 231 self->dirX = self->speed; in creditsMove() 235 if (self->dirX == 0) in creditsMove() [all …]
|
H A D | magic_missile.c | 119 currentDirX = self->dirX; in move() 129 self->dirX = requiredDirX; in move() 134 self->dirX += requiredDirX < 0 ? -1 : 1; in move() 136 if (fabs(self->dirX) > self->speed) in move() 138 self->dirX = self->dirX < 0 ? -self->speed : self->speed; in move() 162 currentDirX = self->dirX; in move() 193 e->dirX = self->target->dirX; in addTrail() 222 self->dirX = 0; in trailMove() 246 self->dirX = e->dirX * 0.75; in trailMove() 250 self->x += self->dirX; in trailMove() [all …]
|
H A D | large_spider.c | 108 self->dirX = 0; in redLookForPlayer() 155 self->dirX = 0; in lookForPlayer() 168 if (self->dirX == 0) in moveAndJump() 196 self->dirX = 0; in moveAndJump() 202 if (self->dirX == 0) in moveAndJump() 282 if (self->dirX == 0) in pounceAttack() 302 self->dirX = 0; in pounceAttack() 425 player.dirX = self->dirX < 0 ? -2 : 2; in webTouch() 541 self->dirX = 0; in pounceReactToBlock() 555 self->dirX = self->speed; in creditsMove() [all …]
|
/dports/games/legend-of-edgar/edgar-1.34/src/ |
H A D | geometry.c | 27 void calculatePath(float startX, float startY, float endX, float endY, float *dirX, float *dirY) in calculatePath() argument 36 *dirX = t == 0 ? 0 : x / t; in calculatePath() 40 void normalize(float *dirX, float *dirY) in normalize() argument 44 if (*dirX == 0 && *dirY == 0) in normalize() 49 normal = fabs(*dirX) > fabs(*dirY) ? fabs(*dirX) : fabs(*dirY); in normalize() 51 *dirX /= normal; in normalize() 55 …ctory(int startX, int endX, float weight, float flightTime, float height, float *dirX, float *dirY) in calculateTrajectory() argument 61 *dirX = hDistance / flightTime; in calculateTrajectory() 65 *dirX *= -1; in calculateTrajectory()
|
H A D | entity.c | 198 self->dirX = self->standingOn->dirX; in doEntities() 445 …self->dirX = self->standingOn != NULL ? self->standingOn->dirX : (self->flags & ON_GROUND ? 0 : se… in doNothing() 450 self->dirX = self->standingOn->dirX; in doNothing() 504 self->dirX = 0; in moveLeftToRight() 843 float dirX; in pushEntity() local 914 dirX = other->dirX; in pushEntity() 927 other->dirX = dirX; in pushEntity() 992 self->dirX += other->dirX; in pushEntity() 1077 self->dirX += other->dirX; in pushEntity() 1725 self->dirX = self->standingOn->dirX; in scriptDoNothing() [all …]
|
/dports/games/legend-of-edgar/edgar-1.34/src/boss/ |
H A D | centurion_boss.c | 155 self->dirX = 0; in doIntro() 172 self->dirX = 0; in doIntro() 254 self->dirX = 0; in lookForPlayer() 261 self->dirX = 0; in lookForPlayer() 556 self->dirX = 0; in die() 1220 float dirX; in creditsMove() local 1250 dirX = self->dirX; in creditsMove() 1254 if (self->dirX == 0 && dirX != 0) in creditsMove() 1275 float dirX; in creditsMoveRegular() local 1302 dirX = self->dirX; in creditsMoveRegular() [all …]
|
H A D | fly_boss.c | 218 self->dirX = 0.5; in introPause() 349 self->dirX = 0; in moveToTarget() 412 self->dirX = 0; in dropInit() 490 self->dirX = 0; in bulletFireMoveToPosition() 552 self->dirX = 0; in slimeFireMoveToPosition() 616 self->dirX = 0; in headButtMoveToPosition() 682 self->dirX = 0; in headButtFinish() 719 self->dirX = 0; in stingAttackMoveToPosition() 797 self->dirX = 0; in stingAttackPause() 812 self->dirX = 0; in fallout() [all …]
|
/dports/games/legend-of-edgar/edgar-1.34/src/item/ |
H A D | robot.c | 96 float dirX, dirY; in touch() local 107 dirY = dirX = 0; in touch() 124 dirX = -self->speed; in touch() 132 dirX = self->speed; in touch() 140 if (dirY != self->dirY || dirX != self->dirX) in touch() 147 self->dirX = dirX; in touch() 196 self->dirX = 0; in processNextInstruction() 214 self->dirX = -self->speed; in processNextInstruction() 222 self->dirX = self->speed; in processNextInstruction() 260 self->dirX = 0; in instructionMove() [all …]
|
H A D | train.c | 67 float dirX; in touch() local 85 dirX = other->dirX; in touch() 87 other->dirX = 0; in touch() 91 other->dirX = dirX; in touch() 113 if (self->dirX == 0 && self->dirY == 0) in moveAlongTrack() 147 calculatePath(self->x, self->y, self->endX, self->endY, &self->dirX, &self->dirY); in moveAlongTrack() 149 self->dirX *= self->speed; in moveAlongTrack() 176 calculatePath(self->x, self->y, self->endX, self->endY, &self->dirX, &self->dirY); in moveAlongTrack() 178 self->dirX *= self->speed; in moveAlongTrack() 195 …if (fabs(self->endX - self->x) <= fabs(self->dirX) && fabs(self->endY - self->y) <= fabs(self->dir… in moveAlongTrack() [all …]
|
/dports/databases/phpmyadmin5/phpMyAdmin-5.1.2-all-languages/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/ |
H A D | EdgeIterator.php | 86 $dirX = 0; 91 $x += $dirX; 98 $left = $this->isSet($x + ($dirX + $dirY - 1 ) / 2, $y + ($dirY - $dirX - 1) / 2); 99 $right = $this->isSet($x + ($dirX - $dirY - 1) / 2, $y + ($dirY + $dirX - 1) / 2); 102 $tmp = $dirX; 103 $dirX = -$dirY; 106 $tmp = $dirX; 107 $dirX = -$dirY; 110 $tmp = $dirX; 111 $dirX = $dirY;
|
/dports/www/typo3-11/typo3_src-11.5.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/ |
H A D | EdgeIterator.php | 86 $dirX = 0; 91 $x += $dirX; 98 $left = $this->isSet($x + ($dirX + $dirY - 1 ) / 2, $y + ($dirY - $dirX - 1) / 2); 99 $right = $this->isSet($x + ($dirX - $dirY - 1) / 2, $y + ($dirY + $dirX - 1) / 2); 102 $tmp = $dirX; 103 $dirX = -$dirY; 106 $tmp = $dirX; 107 $dirX = -$dirY; 110 $tmp = $dirX; 111 $dirX = $dirY;
|