当前位置: 首页>>代码示例>>Java>>正文


Java Bundle.getInt方法代码示例

本文整理汇总了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);
		}
	}
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:24,代码来源:SokobanIntroLevel.java

示例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);

}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:13,代码来源:EasterEgg.java

示例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 );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:8,代码来源:MirrorImage.java

示例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;
	}
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:13,代码来源:CloakOfShadows.java

示例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" ) );
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:9,代码来源:Room.java

示例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 );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:8,代码来源:HallsBossLevel.java

示例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 );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:8,代码来源:CityBossLevel.java

示例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);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:8,代码来源:CavesBossLevel.java

示例9: restoreFromBundle

import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
	super.restoreFromBundle( bundle );
	level = bundle.getInt( LEVEL );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:6,代码来源:Bleeding.java

示例10: restoreFromBundle

import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
	super.restoreFromBundle( bundle );
	combo = bundle.getInt( COMBO );
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:6,代码来源:GnollTrickster.java

示例11: restoreFromBundle

import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
	super.restoreFromBundle(bundle);
	level = bundle.getInt(LEVEL);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:6,代码来源:Bleeding.java

示例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 );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:7,代码来源:LloydsBeacon.java

示例13: restoreFromBundle

import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
	super.restoreFromBundle( bundle );
	depth = bundle.getInt( DEPTH );
}
 
开发者ID:mango-tree,项目名称:UNIST-pixel-dungeon,代码行数:6,代码来源:Key.java

示例14: restoreFromBundle

import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle( Bundle bundle ) {
	pos = bundle.getInt( POS );
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:5,代码来源:Plant.java

示例15: restoreFromBundle

import com.watabou.utils.Bundle; //导入方法依赖的package包/类
@Override
public void restoreFromBundle(Bundle bundle) {
	super.restoreFromBundle(bundle);
	regenleft = bundle.getInt(REGENLEFT);
}
 
开发者ID:G2159687,项目名称:ESPD,代码行数:6,代码来源:BerryRegeneration.java


注:本文中的com.watabou.utils.Bundle.getInt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。