Home
last modified time | relevance | path

Searched refs:otherEnemy (Results 1 – 4 of 4) sorted by relevance

/dports/games/kgoldrunner/kgoldrunner-21.12.3/src/
H A Dkgrlevelplayer.cpp641 int otherEnemy; in bumpingFriend() local
643 otherEnemy = grid->enemyOccupied (gridI + dI, gridJ); in bumpingFriend()
644 if (otherEnemy > 0) { in bumpingFriend()
645 dbk3 << otherEnemy << "at" << (gridI + dI) << gridJ in bumpingFriend()
646 << "dirn" << ((otherEnemy > 0) ? in bumpingFriend()
649 if (enemies.at (otherEnemy - 1)->direction() != dirn) { in bumpingFriend()
658 otherEnemy = grid->enemyOccupied (gridI, gridJ + dJ); in bumpingFriend()
659 if (otherEnemy > 0) { in bumpingFriend()
660 dbk3 << otherEnemy << "at" << gridI << (gridJ + dJ) in bumpingFriend()
661 << "dirn" << ((otherEnemy > 0) ? in bumpingFriend()
[all …]
/dports/games/keeperrl/keeperrl-alpha23/
H A Denemy_info.h18 HeapAllocated<EnemyInfo> otherEnemy; member
H A Dmodel_builder.cpp180 SettlementInfo& extraSettlement = enemy.levelConnection->otherEnemy->settlement; in makeExtraLevel()
490 elem.levelConnection->otherEnemy->settlement.collective = in tryModel()
491 new CollectiveBuilder(elem.levelConnection->otherEnemy->config, in tryModel()
492 elem.levelConnection->otherEnemy->settlement.tribe); in tryModel()
494 extraEnemies.push_back(*elem.levelConnection->otherEnemy); in tryModel()
/dports/games/brogue/BrogueCE-1.10.1/src/brogue/
H A DMonsters.c2207 creature *otherEnemy = !handledPlayer ? &player : nextCreature(&it2); in monsterSwarmDirection() local
2209 if (ally != otherEnemy in monsterSwarmDirection()
2210 && monst != otherEnemy in monsterSwarmDirection()
2211 && enemy != otherEnemy in monsterSwarmDirection()
2212 && monstersAreEnemies(ally, otherEnemy) in monsterSwarmDirection()
2213 … && distanceBetween(ally->xLoc, ally->yLoc, otherEnemy->xLoc, otherEnemy->yLoc) == 1 in monsterSwarmDirection()
2214 …&& (!diagonalBlocked(ally->xLoc, ally->yLoc, otherEnemy->xLoc, otherEnemy->yLoc, false) || (otherE… in monsterSwarmDirection()