package gameplay.Characters.Blue; import gameplay.actions.Attack; import gameplay.actions.attackPart; import gameplay.entities.Status; import gameplay.frames.Frame; import gameplay.hitboxes.*; import gameplay.input.ButtonIG; import java.util.ArrayList; public class BlueMisc { private static Frame fDash1() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,false,false,false); f.setSpriteWrap(14*138,139,138,138); // A 138 on voit les iepds du boug au dessus return f; } private static Frame fDash2() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,12.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,false,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } private static Frame fDash3() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,6.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,true,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } private static Frame fDash4() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,true,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } protected static Frame[] blueFDash() { Frame[] f = new Frame[21]; int c = 0; while(c < 3) {f[c] = fDash1(); c++;} while(c < 11) {f[c] = fDash2(); c++;} while(c < 14) {f[c] = fDash3(); c++;} while(c < f.length) {f[c] = fDash4(); c++;} return f; } private static Frame bDash1() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,false,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } private static Frame bDash2() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,-12.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,false,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } private static Frame bDash3() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,-6.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,false,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } private static Frame bDash4() { /* Hitboxes lists creation */ ArrayList phb = new ArrayList(); ArrayList pthb = new ArrayList(); ArrayList ahb = new ArrayList(); ArrayList athb = new ArrayList(); /* Individual hitboxes creation */ Passive_HitBox phb1 = new Passive_HitBox(70,70,150,500); Passive_throw_HitBox pthb1 = new Passive_throw_HitBox(70,400,150,100); Push_HitBox pushB = new Push_HitBox(70,70,150,500); /* adding hitboxes to lists */ phb.add(phb1); pthb.add(pthb1); /* frame creation */ Frame f = new Frame(0.0,0.0,phb,ahb,pthb,athb,pushB, //cancels (in order : normal, special, jump, move, dash) false,false,false,false,false); f.setSpriteWrap(14*138,139,138,138); return f; } protected static Frame[] blueBDash() { Frame[] f = new Frame[21]; int c = 0; while(c < 3) {f[c] = bDash1(); c++;} while(c < 11) {f[c] = bDash2(); c++;} while(c < 14) {f[c] = bDash3(); c++;} while(c < f.length) {f[c] = bDash4(); c++;} return f; } }