Home
last modified time | relevance | path

Searched refs:getCreature (Results 1 – 25 of 129) sorted by relevance

123456

/dports/games/keeperrl/keeperrl-alpha23/
H A Dplayer.cpp83 visibilityMap->update(getCreature(), getCreature()->getVisibleTiles()); in onEvent()
86 if (getCreature()->canSee(info.begin) || getCreature()->canSee(info.end)) in onEvent()
154 auto stacks = getCreature()->stackItems(getCreature()->getPickUpOptions()); in pickUpItemAction()
158 getCreature()->applySquare(getCreature()->getPosition()).perform(getCreature()); in pickUpItemAction()
430 if (WCreature whom = getCreature()->getPosition().plus(*dir).getCreature()) in giveAction()
447 if (WCreature c = getCreature()->getPosition().plus(*dir).getCreature()) in chatAction()
494 if (!getCreature()->isEnemy(c) || !tryToPerform(getCreature()->attack(c))) in creatureAction()
753 else if (!getCreature()->getPosition().plus(dir).canEnterEmpty(getCreature())) in moveAction()
830 if ((canSee && getCreature()->canSeeInPosition(c)) || c == getCreature() || in getViewIndex()
853 …getGame()->gameOver(getCreature(), getCreature()->getKills().getSize(), "monsters", getCreature()-… in onKilled()
[all …]
H A Dminion_controller.cpp32 getCreature()->getAttributes().getSkills().hasDiscrete(SkillId::CONSUMPTION)}, in getCommands()
38 vector<WCreature> targets = control->getCollective()->getConsumptionTargets(getCreature()); in consumeAction()
41 if (auto action = getCreature()->consume(target)) in consumeAction()
44 tryToPerform(getCreature()->consume(actions[0])); in consumeAction()
50 if (WCreature c = getCreature()->getPosition().plus(*dir).getCreature()) in consumeAction()
52 tryToPerform(getCreature()->consume(c)); in consumeAction()
81 return control->getTeam(getCreature()); in getTeam()
H A Dfurniture_tick.cpp19 if (WCreature c = pos.getCreature()) in handleBed()
25 if (pos.getCreature() || !Random.roll(10) || pos.getPoisonGasAmount() > 0) in handlePigsty()
28 if (v.getCreature() && v.getCreature()->getBody().isMinionFood()) in handlePigsty()
43 if (WCreature other = curPos.getCreature()) { in handleBoulder()
49 CHECK(!pos.getCreature()); in handleBoulder()
H A Dcreature_factory.cpp95 action.perform(getCreature()); in makeMove()
99 getCreature()->dieNoReason(); in makeMove()
106 getCreature()->dieNoReason(); in makeMove()
273 getCreature()->canSee(c) && getCreature()->isEnemy(c) && !c->getHoldingCreature()) in getVisibleEnemy()
283 c->setHeld(getCreature()); in considerAttacking()
323 getCreature()->wait().perform(getCreature()); in makeMove()
342 if (getCreature()->isEnemy(c) && getCreature()->canSee(c)) { in makeMove()
343 getCreature()->thirdPerson(getCreature()->getName().the() + " explodes!"); in makeMove()
522 getCreature()->dieNoReason(); in onBump()
528 getCreature()->dieNoReason(); in makeMove()
[all …]
H A Dcontroller.cpp46 getCreature()->wait().perform(getCreature()); in makeMove()
58 WCreature Controller::getCreature() const { in getCreature() function in Controller
H A Dmonster.cpp51 if (c->isEnemy(getCreature())) in onBump()
52 c->attack(getCreature(), none).perform(c); in onBump()
53 else if (auto action = c->move(getCreature()->getPosition())) in onBump()
H A Dposition.cpp146 WCreature Position::getCreature() const { in getCreature() function in Position
148 return getSquare()->getCreature(); in getCreature()
507 if (WCreature creature = getCreature()) in fireDamage()
661 if (getCreature()) in getNavigationCost()
714 level->moveCreature(getCreature(), getDir(pos)); in moveCreature()
716 level->changeLevel(pos, getCreature()); in moveCreature()
722 level->moveCreature(getCreature(), direction); in moveCreature()
732 WCreature creature = getCreature(); in canMoveCreature()
738 return destination.canEnter(getCreature()); in canMoveCreature()
761 CHECK(isValid() && getCreature()); in swapCreatures()
[all …]
/dports/games/scourge/scourge/src/
H A Dspellcaster.cpp44 Creature *creature = battle->getCreature(); in SpellCaster()
74 if ( battle->getCreature()->isMonster() || in spellFailed()
209 Creature *creature = battle->getCreature(); in viewInfo()
283 Creature *creature = battle->getCreature(); in increaseHP()
303 Creature *creature = battle->getCreature(); in increaseAC()
329 Creature *creature = battle->getCreature(); in launchProjectile()
378 Creature *creature = battle->getCreature(); in causeDamage()
479 battle->getCreature()->getTargetY(), in setStateMod()
752 battle->getCreature()->getTargetX(), battle->getCreature()->getTargetY(), in getRadius()
765 *sx = battle->getCreature()->getX() + ( battle->getCreature()->getShape()->getWidth() / 2.0f ); in getRadius()
[all …]
H A Dsession.cpp458getCreature( i )->getStateMod( StateMod::dead ) && !getCreature( i )->getStateMod( StateMod::posse… in getClosestMonster()
459 …::distance( x, y, w, h, getCreature( i )->getX(), getCreature( i )->getY(), getCreature( i )->getS… in getClosestMonster()
461 p = getCreature( i ); in getClosestMonster()
478getCreature( i )->getStateMod( StateMod::dead ) && !getCreature( i )->getStateMod( StateMod::posse… in getClosestGoodGuy()
479 …::distance( x, y, w, h, getCreature( i )->getX(), getCreature( i )->getY(), getCreature( i )->getS… in getClosestGoodGuy()
481 p = getCreature( i ); in getClosestGoodGuy()
508getCreature( i )->getStateMod( StateMod::dead ) && !getCreature( i )->getStateMod( StateMod::posse… in getRandomNearbyMonster()
509 …::distance( x, y, w, h, getCreature( i )->getX(), getCreature( i )->getY(), getCreature( i )->getS… in getRandomNearbyMonster()
510 possibleTargets.push_back ( getCreature( i ) ); in getRandomNearbyMonster()
526getCreature( i )->getStateMod( StateMod::dead ) && !getCreature( i )->getStateMod( StateMod::posse… in getRandomNearbyGoodGuy()
[all …]
H A Dprojectile.cpp324 cerr << "PROJ: max steps, from=" << proj->getCreature()->getName() << endl; in moveProjectiles()
338 cerr << "PROJ: reached location target, from=" << proj->getCreature()->getName() << endl; in moveProjectiles()
359 cerr << "PROJ: attacks target creature, from=" << proj->getCreature()->getName() << endl; in moveProjectiles()
379 proj->getCreature()->canAttack( loc->creature ) && in moveProjectiles()
382 …n-target creature: " << loc->creature->getName() << ", from=" << proj->getCreature()->getName() <<… in moveProjectiles()
389 cerr << "PROJ: blocked by item or shape, from=" << proj->getCreature()->getName() << endl; in moveProjectiles()
405 cerr << "Creature: " << proj->getCreature()->getName() << endl; in moveProjectiles()
H A Dscourge.cpp864 uzudil = session->getCreature( i ); in showLevelInfo()
1743 bool active = ( session->getCreature( i ) == battle->getCreature() || in resetNonParticipantAnimation()
1744 session->getCreature( i ) == battle->getCreature()->getTargetCreature() ); in resetNonParticipantAnimation()
1792 …if ( !session->getCreature( i )->getStateMod( StateMod::dead ) && !session->getParty()->isPartyMem… in createBattleTurns()
1809 session->getCreature( i )->cancelTarget(); in createBattleTurns()
1818 session->getCreature( i )->cancelTarget(); in createBattleTurns()
1885 …session->getCreature( i )->setMotion( session->getCreature( i )->isScripted() ? Constants::MOTION_… in resetUIAfterBattle()
1887 if( session->getCreature( i )->isSummoned() ) { in resetUIAfterBattle()
1916 Creature *c = session->getCreature( i ); in moveCreatures()
2498 if ( battleRound[i]->getCreature() == p ) { in drawPortrait()
[all …]
H A Dbattle.cpp120 if ( b->getCreature()->getInitiative() > battle[i]->getCreature()->getInitiative() ) { in setupBattles()
922 ( ( Creature* )( proj->getCreature() ) )->setTargetCreature( target ); in projectileHitTurn()
923 Battle *battle = ( ( Creature* )( proj->getCreature() ) )->getBattle(); in projectileHitTurn()
943 ( ( Creature* )( proj->getCreature() ) )->cancelTarget(); in projectileHitTurn()
946 if ( !proj->getCreature()->isAutoControlled() ) in projectileHitTurn()
947 ( ( Creature* )( proj->getCreature() ) )->setSelXY( -1, -1 ); in projectileHitTurn()
954 ( ( Creature* )( proj->getCreature() ) )->setTargetLocation( x, y, 0 ); in projectileHitTurn()
955 Battle *battle = ( ( Creature* )( proj->getCreature() ) )->getBattle(); in projectileHitTurn()
973 ( ( Creature* )( proj->getCreature() ) )->cancelTarget(); in projectileHitTurn()
974 if ( !proj->getCreature()->isAutoControlled() ) in projectileHitTurn()
[all …]
/dports/games/scourge/scourge/src/render/
H A Drenderedprojectile.cpp34 if ( projectiles.find( proj->getCreature() ) == projectiles.end() ) { in addProjectile()
36 projectiles[ proj->getCreature() ] = v; in addProjectile()
38 v = projectiles[ proj->getCreature() ]; in addProjectile()
58 if ( projectiles.find( p->getCreature() ) != projectiles.end() ) { in removeProjectile()
59 vector<RenderedProjectile*> *v = projectiles[ p->getCreature() ]; in removeProjectile()
65 projectiles.erase( p->getCreature() ); in removeProjectile()
/dports/games/stendhal/stendhal-1.35/src/games/stendhal/server/maps/semos/wizardstower/
H A DFifthFloorCreatures.java42 final Creature creature = manager.getCreature("stone golem"); in buildFifthFloor()
43 final Creature creature1 = manager.getCreature("wooden golem"); in buildFifthFloor()
44 final Creature creature2 = manager.getCreature("nymph"); in buildFifthFloor()
45 final Creature creature3 = manager.getCreature("earth elemental"); in buildFifthFloor()
H A DFirstFloorCreatures.java42 final Creature creature = manager.getCreature("fire elemental"); in buildFirstFloor()
43 final Creature creature1 = manager.getCreature("demon"); in buildFirstFloor()
44 final Creature creature2 = manager.getCreature("imp"); in buildFirstFloor()
45 final Creature creature3 = manager.getCreature("red dragon"); in buildFirstFloor()
H A DFourthFloorCreatures.java42 final Creature creature = manager.getCreature("water elemental"); in buildFourthFloor()
43 final Creature creature1 = manager.getCreature("ice elemental"); in buildFourthFloor()
44 final Creature creature2 = manager.getCreature("ice giant"); in buildFourthFloor()
45 final Creature creature3 = manager.getCreature("ice golem"); in buildFourthFloor()
H A DSecondFloorCreatures.java42 final Creature creature = manager.getCreature("air elemental"); in buildSecondFloor()
43 final Creature creature1 = manager.getCreature("madaram windwalker"); in buildSecondFloor()
44 final Creature creature2 = manager.getCreature("djinn"); in buildSecondFloor()
45 final Creature creature3 = manager.getCreature("invisible man"); in buildSecondFloor()
H A DSixthFloorCreatures.java42 final Creature creature = manager.getCreature("littlefairy"); in buildSixthFloor()
43 final Creature creature1 = manager.getCreature("pegasus"); in buildSixthFloor()
44 final Creature creature2 = manager.getCreature("unicorn"); in buildSixthFloor()
45 final Creature creature3 = manager.getCreature("archangel"); in buildSixthFloor()
H A DThirdFloorCreatures.java42 final Creature creature = manager.getCreature("fallen warrior"); in buildThirdFloor()
43 final Creature creature1 = manager.getCreature("high lich"); in buildThirdFloor()
44 final Creature creature2 = manager.getCreature("elder skeleton"); in buildThirdFloor()
45 final Creature creature3 = manager.getCreature("fallen high priest"); in buildThirdFloor()
/dports/games/stendhal/stendhal-1.35/src/games/stendhal/server/core/rule/defaultruleset/
H A DDefaultEntityManager.java198 createdCreature.put(cr.getCreatureName(), cr.getCreature()); in populateCreatureList()
245 entity = getCreature(clazz); in getEntity()
265 public Creature getCreature(final String tileset, final int id) { in getCreature() method in DefaultEntityManager
271 return getCreature(clazz); in getCreature()
282 public Creature getCreature(final String clazz) { in getCreature() method in DefaultEntityManager
291 createdCreature.put(clazz, creature.getCreature()); in getCreature()
293 return creature.getCreature(); in getCreature()
/dports/games/stendhal/stendhal-1.35/src/games/stendhal/server/maps/
H A DFeaturesTestArea.java60 final Creature creature = new ItemGuardCreature(manager.getCreature("rat"), "golden key"); in createDoorAndKey()
66 Creature creature = new AttackableCreature(manager.getCreature("orc")); in attackableAnimal()
71 creature = manager.getCreature("deer"); in attackableAnimal()
/dports/games/stendhal/stendhal-1.35/tests/games/stendhal/server/entity/creature/impl/attack/
H A DAttackWeakestTest.java110 final Creature creature = SingletonRepository.getEntityManager().getCreature("rat"); in testFindNewTarget()
142 final Creature creature = SingletonRepository.getEntityManager().getCreature("rat"); in testFindNewTargetFromDistance()
180 final Creature creature = SingletonRepository.getEntityManager().getCreature("rat"); in testSwitchTargets()
232 final Creature creature = SingletonRepository.getEntityManager().getCreature("rat"); in testSwitchTargetsIgnoreCreatures()
233 …scrollCreature = new AttackableCreature(SingletonRepository.getEntityManager().getCreature("rat")); in testSwitchTargetsIgnoreCreatures()
/dports/games/stendhal/stendhal-1.35/tests/games/stendhal/server/maps/quests/
H A DDailyMonsterQuestTest.java94 SingletonRepository.getEntityManager().getCreature("rat"); in testfire()
109 SingletonRepository.getEntityManager().getCreature("rat"); in testClaimDone()
128 creatureList.add(SingletonRepository.getEntityManager().getCreature("rat")); in testPickIdealCreature()
131 creatureList.add(SingletonRepository.getEntityManager().getCreature("balrog")); in testPickIdealCreature()
/dports/games/stendhal/stendhal-1.35/tests/games/stendhal/server/entity/status/
H A DPoisonAttackerTest.java47 poisoner.onAttackAttempt(victim, SingletonRepository.getEntityManager().getCreature("snake")); in testPoisoner()
61 poisoner.onAttackAttempt(victim, SingletonRepository.getEntityManager().getCreature("snake")); in testPoisonerProbabilityZero()
/dports/games/stendhal/stendhal-1.35/src/games/stendhal/server/core/rule/
H A DEntityManager.java81 Creature getCreature(String tileset, int id); in getCreature() method
93 Creature getCreature(String clazz); in getCreature() method

123456