本文整理汇总了Java中com.watabou.noosa.Group.add方法的典型用法代码示例。如果您正苦于以下问题:Java Group.add方法的具体用法?Java Group.add怎么用?Java Group.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.noosa.Group
的用法示例。
在下文中一共展示了Group.add方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: statSlot
import com.watabou.noosa.Group; //导入方法依赖的package包/类
private float statSlot(Group parent, String label, String value,
float pos) {
RenderedText txt = PixelScene.renderText(label, 7);
txt.y = pos;
parent.add(txt);
txt = PixelScene.renderText(value, 7);
txt.x = PixelScene.align(WIDTH * 0.65f);
txt.y = pos;
parent.add(txt);
return pos + GAP + txt.baseLine();
}
示例2: statSlot
import com.watabou.noosa.Group; //导入方法依赖的package包/类
private float statSlot( Group parent, String label, String value, float pos ) {
RenderedText txt = PixelScene.renderText( label, 7 );
txt.y = pos;
parent.add( txt );
txt = PixelScene.renderText( value, 7 );
txt.x = WIDTH * 0.65f;
txt.y = pos;
PixelScene.align(txt);
parent.add( txt );
return pos + GAP + txt.baseLine();
}
示例3: addHallsVisuals
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public static void addHallsVisuals( Level level, Group group ) {
for (int i=0; i < level.length(); i++) {
if (level.map[i] == Terrain.WATER) {
group.add( new Stream( i ) );
}
}
}
示例4: addPrisonVisuals
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public static void addPrisonVisuals(Level level, Group group){
for (int i=0; i < level.length(); i++) {
if (level.map[i] == Terrain.WALL_DECO) {
group.add( new Torch( i ) );
}
}
}
示例5: addSewerVisuals
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public static void addSewerVisuals( Level level, Group group ) {
for (int i=0; i < level.length(); i++) {
if (level.map[i] == Terrain.WALL_DECO) {
group.add( new Sink( i ) );
}
}
}
示例6: addCityVisuals
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public static void addCityVisuals( Level level, Group group ) {
for (int i=0; i < level.length(); i++) {
if (level.map[i] == Terrain.WALL_DECO) {
group.add( new Smoke( i ) );
}
}
}
示例7: addCavesVisuals
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public static void addCavesVisuals( Level level, Group group ) {
for (int i=0; i < level.length(); i++) {
if (level.map[i] == Terrain.WALL_DECO) {
group.add( new Vein( i ) );
}
}
}
示例8: show
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public Flare show( Group parent, PointF pos, float duration ) {
point( pos );
parent.add( this );
lifespan = this.duration = duration;
return this;
}
示例9: statSlot
import com.watabou.noosa.Group; //导入方法依赖的package包/类
private float statSlot( Group parent, String label, String value, float pos ) {
BitmapText txt = PixelScene.createText( label, 7 );
txt.y = pos;
parent.add( txt );
txt = PixelScene.createText( value, 7 );
txt.measure();
txt.x = PixelScene.align( WIDTH * 0.65f );
txt.y = pos;
parent.add( txt );
return pos + GAP + txt.baseLine();
}
示例10: statSlot
import com.watabou.noosa.Group; //导入方法依赖的package包/类
private float statSlot( Group parent, String label, String value, float pos ) {
BitmapText txt = PixelScene.createText( label, 7 );
txt.y = pos;
parent.add( txt );
txt = PixelScene.createText( value, 6 );
txt.measure();
txt.x = PixelScene.align( WIDTH * 0.65f );
txt.y = pos;
parent.add( txt );
return pos + GAP + txt.baseLine();
}
示例11: show
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public Flare show( Group parent, PointF pos, float duration ) {
point( pos );
parent.add( this );
lifespan = this.duration = duration;
return this;
}
示例12: show
import com.watabou.noosa.Group; //导入方法依赖的package包/类
public Flare show( Group parent, PointF pos, float duration ) {
point( pos );
parent.add( this );
lifespan = this.duration = duration;
if (lifespan > 0) scale.set( 0 );
return this;
}
示例13: statSlot
import com.watabou.noosa.Group; //导入方法依赖的package包/类
private float statSlot( Group parent, String label, String value, float pos ) {
Text txt = PixelScene.createText( label, GuiProperties.regularFontSize() );
txt.y = pos;
parent.add( txt );
txt = PixelScene.createText( value, GuiProperties.regularFontSize() );
txt.measure();
txt.x = PixelScene.align( WIDTH * 0.65f );
txt.y = pos;
parent.add( txt );
return pos + GAP + txt.baseLine();
}