Class Simulation
- java.lang.Object
-
- com.kraken.api.simulation.colosim.Simulation
-
public class Simulation extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimulation.StepResult
-
Field Summary
Fields Modifier and Type Field Description static intDELAY_FIRST_ATTACK_TICKSstatic intMANTICOREstatic intMANTICORE_CHARGE_TIMEstatic intMANTICORE_DELAYstatic intMAP_HEIGHTstatic intMAP_WIDTHstatic intMINOTAURstatic intMINOTAUR_HEAL_RANGE
-
Constructor Summary
Constructors Constructor Description Simulation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAttackPlayer(Mob mob)voidclear()java.lang.StringdecodeManticoreAttack(int styleIndex)intfindMobIndexAtTile(int x, int y)int[][][]getBlockedTileRanges()int[]getManticorePattern(java.lang.String name)intgetMobCenterOffset(int type)NpcInfogetNpcInfo(int type)java.lang.StringgetNpcName(int type)boolean[]getPillarFilters()booleanhasLOS(int x1, int y1, int x2, int y2, int s, int r, boolean isNPC)booleanplaceMob(int x, int y, NpcType type, java.lang.String extra)voidremoveMobAtTile(int x, int y)voidreset()voidsetPlayer(int x, int y)Simulation.StepResultstep()
-
-
-
Field Detail
-
MAP_WIDTH
public static final int MAP_WIDTH
- See Also:
- Constant Field Values
-
MAP_HEIGHT
public static final int MAP_HEIGHT
- See Also:
- Constant Field Values
-
MANTICORE_DELAY
public static final int MANTICORE_DELAY
- See Also:
- Constant Field Values
-
MANTICORE_CHARGE_TIME
public static final int MANTICORE_CHARGE_TIME
- See Also:
- Constant Field Values
-
DELAY_FIRST_ATTACK_TICKS
public static final int DELAY_FIRST_ATTACK_TICKS
- See Also:
- Constant Field Values
-
MINOTAUR_HEAL_RANGE
public static final int MINOTAUR_HEAL_RANGE
- See Also:
- Constant Field Values
-
MANTICORE
public static final int MANTICORE
-
MINOTAUR
public static final int MINOTAUR
-
-
Method Detail
-
getBlockedTileRanges
public int[][][] getBlockedTileRanges()
-
getPillarFilters
public boolean[] getPillarFilters()
-
setPlayer
public void setPlayer(int x, int y)
-
getNpcInfo
public NpcInfo getNpcInfo(int type)
-
getNpcName
public java.lang.String getNpcName(int type)
-
decodeManticoreAttack
public java.lang.String decodeManticoreAttack(int styleIndex)
-
getManticorePattern
public int[] getManticorePattern(java.lang.String name)
-
getMobCenterOffset
public int getMobCenterOffset(int type)
-
placeMob
public boolean placeMob(int x, int y, NpcType type, java.lang.String extra)
-
clear
public void clear()
-
reset
public void reset()
-
findMobIndexAtTile
public int findMobIndexAtTile(int x, int y)
-
removeMobAtTile
public void removeMobAtTile(int x, int y)
-
step
public Simulation.StepResult step()
-
hasLOS
public boolean hasLOS(int x1, int y1, int x2, int y2, int s, int r, boolean isNPC)
-
canAttackPlayer
public boolean canAttackPlayer(Mob mob)
-
-