本文整理汇总了Java中com.watabou.utils.Bundle.getInt方法的典型用法代码示例。如果您正苦于以下问题:Java Bundle.getInt方法的具体用法?Java Bundle.getInt怎么用?Java Bundle.getInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.utils.Bundle
的用法示例。
在下文中一共展示了Bundle.getInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
heapgenspots = bundle.getIntArray(HEAPGENSPOTS);
teleportspots = bundle.getIntArray(TELEPORTSPOTS);
portswitchspots = bundle.getIntArray(PORTSWITCHSPOTS);
destinationspots = bundle.getIntArray(DESTINATIONSPOTS);
destinationassign = bundle.getIntArray(DESTINATIONASSIGN);
teleportassign = bundle.getIntArray(TELEPORTASSIGN);
prizeNo = bundle.getInt(PRIZENO);
heapstogen = new HashSet<Item>();
Collection<Bundlable> collectionheap = bundle.getCollection(HEAPSTOGEN);
for (Bundlable i : collectionheap) {
Item item = (Item) i;
if (item != null) {
heapstogen.add(item);
}
}
}
示例2: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
startMoves = bundle.getInt(STARTMOVES);
moves = bundle.getInt(MOVES);
burns = bundle.getInt(BURNS);
freezes = bundle.getInt(FREEZES);
poisons = bundle.getInt(POISONS);
lits = bundle.getInt(LITS);
summons = bundle.getInt(SUMMONS);
}
示例3: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
tier = bundle.getInt( TIER );
attack = bundle.getInt( ATTACK );
damage = bundle.getInt( DAMAGE );
}
示例4: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle(bundle);
stealthed = bundle.getBoolean( STEALTHED );
cooldown = bundle.getInt( COOLDOWN );
//for pre-0.4.1 saves which may have over-levelled cloaks
if (level() == 15){
level(14);
chargeCap = 20;
}
}
示例5: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
left = bundle.getInt( "left" );
top = bundle.getInt( "top" );
right = bundle.getInt( "right" );
bottom = bundle.getInt( "bottom" );
type = Type.valueOf( bundle.getString( "type" ) );
}
示例6: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
stairs = bundle.getInt( STAIRS );
enteredArena = bundle.getBoolean( ENTERED );
keyDropped = bundle.getBoolean( DROPPED );
}
示例7: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
arenaDoor = bundle.getInt( DOOR );
enteredArena = bundle.getBoolean( ENTERED );
keyDropped = bundle.getBoolean( DROPPED );
}
示例8: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
arenaDoor = bundle.getInt(DOOR);
enteredArena = bundle.getBoolean(ENTERED);
keyDropped = bundle.getBoolean(DROPPED);
}
示例9: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
level = bundle.getInt( LEVEL );
}
示例10: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
combo = bundle.getInt( COMBO );
}
示例11: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
level = bundle.getInt(LEVEL);
}
示例12: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle(bundle);
returnDepth = bundle.getInt( DEPTH );
returnPos = bundle.getInt( POS );
}
示例13: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
super.restoreFromBundle( bundle );
depth = bundle.getInt( DEPTH );
}
示例14: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
pos = bundle.getInt( POS );
}
示例15: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
regenleft = bundle.getInt(REGENLEFT);
}