Co-authored-by: sigonasr2 <sigonasr2@gmail.com>main
parent
06ce92a7a7
commit
b1c0e75bc5
File diff suppressed because it is too large
Load Diff
@ -1,15 +1,25 @@ |
||||
package sig; |
||||
|
||||
import java.util.HashMap; |
||||
|
||||
public class Node{ |
||||
Node north; |
||||
long northR; |
||||
Node east; |
||||
long eastR; |
||||
Node west; |
||||
long westR; |
||||
Node south; |
||||
long southR; |
||||
public Node(Node n,long nr,Node e,long er,Node s,long sr,Node w,long wr) { |
||||
north=n;northR=nr;east=e;eastR=er;south=s;southR=sr;west=w;westR=wr; |
||||
}; |
||||
HashMap<Node,Long[]> connections = new HashMap<>(); |
||||
public Node() {}; |
||||
public void add(Node n,Long...requirements) { |
||||
if (!connections.containsKey(n)) { |
||||
connections.put(n,requirements); |
||||
n.add(this,requirements); |
||||
} |
||||
} |
||||
/** |
||||
* @param n The node to add. |
||||
* @param inrequirements The requirements to get to the node. |
||||
* @param outrequirements The requirements to get from that node back to the current node. |
||||
*/ |
||||
public void add(Node n,Long[]inrequirements,Long...outrequirements) { |
||||
if (!connections.containsKey(n)) { |
||||
connections.put(n,inrequirements); |
||||
n.add(this,outrequirements); |
||||
} |
||||
} |
||||
} |
@ -1,60 +0,0 @@ |
||||
package sig; |
||||
|
||||
public class Restriction { |
||||
private static int i=0; |
||||
final static long NULL = 0; |
||||
final static long INTERMEDIATE_HARD = DefineBitwiseConstant(); |
||||
final static long INTERMEDIATE = DefineBitwiseConstant(); |
||||
final static long SPEED1 = DefineBitwiseConstant(); |
||||
final static long AIR_DASH = DefineBitwiseConstant(); |
||||
final static long AIR_JUMP = DefineBitwiseConstant(); |
||||
final static long EXPLOSIVES_ENEMY = DefineBitwiseConstant(); |
||||
final static long SLIDING_POWDER = DefineBitwiseConstant(); |
||||
final static long PROLOGUE_TRIGGER = DefineBitwiseConstant(); |
||||
final static long EXPLOSIVES = DefineBitwiseConstant(); |
||||
final static long HAMMER_ROLL_ZIP = DefineBitwiseConstant(); |
||||
final static long ADVANCED_VHARD = DefineBitwiseConstant(); |
||||
final static long SLIDE_ZIP = DefineBitwiseConstant(); |
||||
final static long AMULET_FOOD = DefineBitwiseConstant(); |
||||
final static long WHIRL_BONK = DefineBitwiseConstant(); |
||||
final static long RABI_SLIPPERS = DefineBitwiseConstant(); |
||||
final static long BUNNY_STRIKE = DefineBitwiseConstant(); |
||||
final static long DARKNESS = DefineBitwiseConstant(); |
||||
final static long WALL_JUMP_LV2 = DefineBitwiseConstant(); |
||||
final static long WHIRL_BONK_CANCEL = DefineBitwiseConstant(); |
||||
final static long HAMMER_ROLL = DefineBitwiseConstant(); |
||||
final static long ADVANCED_STUPID = DefineBitwiseConstant(); |
||||
final static long DOWNDRILL_SEMISOLID_CLIP = DefineBitwiseConstant(); |
||||
final static long HARD = DefineBitwiseConstant(); |
||||
final static long SLIDE_JUMP_BUNSTRIKE_CANCEL = DefineBitwiseConstant(); |
||||
final static long BUNNY_AMULET = DefineBitwiseConstant(); |
||||
final static long IMPOSSIBLE = DefineBitwiseConstant(); |
||||
final static long CARROT_SHOOTER = DefineBitwiseConstant(); |
||||
final static long CARROT_BOMB = DefineBitwiseConstant(); |
||||
final static long BACKTRACK_1 = DefineBitwiseConstant(); |
||||
final static long ADVANCED_HARD = DefineBitwiseConstant(); |
||||
final static long SPEED5 = DefineBitwiseConstant(); |
||||
final static long KOTRI_1 = DefineBitwiseConstant(); |
||||
final static long COCOA_1 = DefineBitwiseConstant(); |
||||
final static long CHAPTER_1 = DefineBitwiseConstant(); |
||||
final static long WALL_JUMP = DefineBitwiseConstant(); |
||||
final static long AIR_DASH_LV3 = DefineBitwiseConstant(); |
||||
final static long SLIDE_JUMP_BUNSTRIKE = DefineBitwiseConstant(); |
||||
final static long INTERMEDIATE_VERYHARD = DefineBitwiseConstant(); |
||||
final static long TM_PANDORA = DefineBitwiseConstant(); |
||||
final static long HALLOWEEN = DefineBitwiseConstant(); |
||||
final static long BOOST = DefineBitwiseConstant(); |
||||
final static long BOOST_MANY = DefineBitwiseConstant(); |
||||
final static long EIGHT_TILE_WALLJUMP = DefineBitwiseConstant(); |
||||
final static long TM_CHOCOLATE = DefineBitwiseConstant(); |
||||
final static long WATER_ORB = DefineBitwiseConstant(); |
||||
final static long ADVANCED = DefineBitwiseConstant(); |
||||
final static long BUNNY_AMULET_LV2 = DefineBitwiseConstant(); |
||||
final static long TWO_AMULET_FOOD = DefineBitwiseConstant(); |
||||
final static long UNDERWATER = DefineBitwiseConstant(); |
||||
final static long SPEED3 = DefineBitwiseConstant(); |
||||
final static long PIKO_HAMMER_LEVELED = DefineBitwiseConstant(); |
||||
final static long BACKTRACK_3 = DefineBitwiseConstant(); |
||||
|
||||
private static long DefineBitwiseConstant() {/*System.out.println("Restrictions reach a bit-wise value of "+Long.toBinaryString((long)Math.pow(2,i)));*/return (long)Math.pow(2,i++);} |
||||
} |
Loading…
Reference in new issue