Java Code Examples for com.watabou.noosa.Group#bringToFront()

The following examples show how to use com.watabou.noosa.Group#bringToFront() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Wound.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.sprite.parent;
	Wound w = (Wound)parent.recycle( Wound.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 2
Source File: Wound.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.sprite.parent;
	Wound w = (Wound)parent.recycle( Wound.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 3
Source File: Surprise.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit(int pos, float angle) {
	Group parent = Dungeon.hero.sprite.parent;
	Wound w = (Wound) parent.recycle(Wound.class);
	parent.bringToFront(w);
	w.reset(pos);
	w.angle = angle;
}
 
Example 4
Source File: Wound.java    From pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.sprite.parent;
	Wound w = (Wound)parent.recycle( Wound.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 5
Source File: Wound.java    From shattered-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.sprite.parent;
	Wound w = (Wound)parent.recycle( Wound.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 6
Source File: Surprise.java    From shattered-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit(int pos, float angle) {
	Group parent = Dungeon.hero.sprite.parent;
	Surprise s = (Surprise) parent.recycle(Surprise.class);
	parent.bringToFront(s);
	s.reset(pos);
	s.angle = angle;
}
 
Example 7
Source File: Devour.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.getSprite().getParent();
	Devour w = (Devour)parent.recycle( Devour.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 8
Source File: Wound.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.getSprite().getParent();
	Wound w = (Wound)parent.recycle( Wound.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 9
Source File: Wound.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 5 votes vote down vote up
public static void hit( int pos, float angle ) {
	Group parent = Dungeon.hero.sprite.parent;
	Wound w = (Wound)parent.recycle( Wound.class );
	parent.bringToFront( w );
	w.reset( pos );
	w.angle = angle;
}
 
Example 10
Source File: Surprise.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 5 votes vote down vote up
public static void hit(int pos, float angle) {
	Group parent = Dungeon.hero.sprite.parent;
	Surprise s = (Surprise) parent.recycle(Surprise.class);
	parent.bringToFront(s);
	s.reset(pos);
	s.angle = angle;
}
 
Example 11
Source File: DoomSkull.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 4 votes vote down vote up
public static void createAtPos( int pos ) {
	Group parent = Dungeon.hero.sprite.parent;
	DoomSkull w = (DoomSkull)parent.recycle( DoomSkull.class );
	parent.bringToFront( w );
	w.reset( pos );
}
 
Example 12
Source File: HolyLight.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 4 votes vote down vote up
public static void createAtPos( int pos ) {
	Group parent = Dungeon.hero.sprite.parent;
	HolyLight w = (HolyLight)parent.recycle( HolyLight.class );
	parent.bringToFront( w );
	w.reset( pos );
}
 
Example 13
Source File: WandOfBlastWave.java    From unleashed-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public static void blast(int pos) {
	Group parent = Dungeon.hero.sprite.parent;
	BlastWave b = (BlastWave) parent.recycle(BlastWave.class);
	parent.bringToFront(b);
	b.reset(pos);
}
 
Example 14
Source File: WandOfBlastWave.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public static void blast(int pos) {
	Group parent = Dungeon.hero.sprite.parent;
	BlastWave b = (BlastWave) parent.recycle(BlastWave.class);
	parent.bringToFront(b);
	b.reset(pos);
}
 
Example 15
Source File: WandOfBlastWave.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public static void blast(int pos) {
	Group parent = Dungeon.hero.sprite.parent;
	BlastWave b = (BlastWave) parent.recycle(BlastWave.class);
	parent.bringToFront(b);
	b.reset(pos);
}