本文整理汇总了Java中com.watabou.utils.Bundle.isNull方法的典型用法代码示例。如果您正苦于以下问题:Java Bundle.isNull方法的具体用法?Java Bundle.isNull怎么用?Java Bundle.isNull使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.watabou.utils.Bundle
的用法示例。
在下文中一共展示了Bundle.isNull方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle(Bundle bundle) {
Bundle node = bundle.getBundle(NODE);
if (!node.isNull() && (spawned = node.getBoolean(SPAWNED))) {
type = node.getInt(TYPE);
given = node.getBoolean(GIVEN);
processed = node.getBoolean(PROCESSED);
depth = node.getInt(DEPTH);
weapon = (Weapon) node.get(WEAPON);
armor = (Armor) node.get(ARMOR);
} else {
reset();
}
}
示例2: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle( Bundle bundle ) {
Bundle node = bundle.getBundle( NODE );
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
//TODO remove when pre-0.3.2 saves are no longer supported
if (node.contains(TYPE)) {
type = node.getInt(TYPE);
} else {
type = node.getBoolean("alternative")? 1 : 3;
}
given = node.getBoolean( GIVEN );
wand1 = (Ring)node.get( WAND1 );
wand2 = (Ring)node.get( WAND2 );
if (type == 2){
CeremonialCandle.ritualPos = node.getInt( RITUALPOS );
}
} else {
reset();
}
}
示例3: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle( Bundle bundle ) {
Bundle node = bundle.getBundle( NODE );
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
type = node.getInt(TYPE);
given = node.getBoolean( GIVEN );
processed = node.getBoolean( PROCESSED );
depth = node.getInt( DEPTH );
weapon = (Weapon)node.get( WEAPON );
armor = (Armor)node.get( ARMOR );
} else {
reset();
}
}
示例4: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle( Bundle bundle ) {
Bundle node = bundle.getBundle( NODE );
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
type = node.getEnum( TYPE, Type.class );
if (type == Type.ILLEGAL) {
type = node.getBoolean( ALTERNATIVE ) ? Type.DUST : Type.BERRY;
}
given = node.getBoolean( GIVEN );
wand1 = (Wand)node.get( WAND1 );
wand2 = (Wand)node.get( WAND2 );
} else {
reset();
}
}
示例5: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle( Bundle bundle ) {
Bundle node = bundle.getBundle( NODE );
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
type = node.getEnum( TYPE, Type.class );
if (type == Type.ILLEGAL) {
type = node.getBoolean( ALTERNATIVE ) ? Type.RAT : Type.ROSE;
}
if (type == Type.ROSE) {
left2kill = node.getInt( LEFT2KILL );
}
given = node.getBoolean( GIVEN );
depth = node.getInt( DEPTH );
processed = node.getBoolean( PROCESSED );
weapon = (Weapon)node.get( WEAPON );
armor = (Armor)node.get( ARMOR );
} else {
reset();
}
}
示例6: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle(Bundle bundle) {
Bundle node = bundle.getBundle(NODE);
if (!node.isNull() && (spawned = node.getBoolean(SPAWNED))) {
alternative = node.getBoolean(ALTERNATIVE);
given = node.getBoolean(GIVEN);
completed = node.getBoolean(COMPLETED);
reward = (Ring) node.get(REWARD);
}
}
示例7: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle(Bundle bundle) {
Bundle node = bundle.getBundle(NODE);
if (!node.isNull() && (spawned = node.getBoolean(SPAWNED))) {
alternative = node.getBoolean(ALTERNATIVE);
given = node.getBoolean(GIVEN);
completed = node.getBoolean(COMPLETED);
reforged = node.getBoolean(REFORGED);
} else {
reset();
}
}
示例8: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle( Bundle bundle ) {
Bundle node = bundle.getBundle( NODE );
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
alternative = node.getBoolean( ALTERNATIVE );
given = node.getBoolean( GIVEN );
completed = node.getBoolean( COMPLETED );
reward = (Ring)node.get( REWARD );
}
}
示例9: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle( Bundle bundle ) {
Bundle node = bundle.getBundle( NODE );
if (!node.isNull() && (spawned = node.getBoolean( SPAWNED ))) {
alternative = node.getBoolean( ALTERNATIVE );
given = node.getBoolean( GIVEN );
completed = node.getBoolean( COMPLETED );
reforged = node.getBoolean( REFORGED );
} else {
reset();
}
}
示例10: restoreFromBundle
import com.watabou.utils.Bundle; //导入方法依赖的package包/类
public static void restoreFromBundle(Bundle bundle) {
Bundle node = bundle.getBundle(NODE);
if (!node.isNull() && (spawned = node.getBoolean(SPAWNED))) {
alternative = node.getBoolean(ALTERNATIVE);
given = node.getBoolean(GIVEN);
wand1 = (Wand) node.get(WAND1);
wand2 = (Wand) node.get(WAND2);
} else {
reset();
}
}