`
ggyyleo
  • 浏览: 46834 次
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
footman gryphonrider knight peasant priest rifleman seigeengine sorceress spellbreaker summonwaterelemental dragonhawk flyingmachine mortarteam wyvernrider demolisher grunt headhunter kotobeast peon raider shaman spiritwalker spiritwolf tauren trollbatrider witchdoctor mountaingiant wisp archer chima ...
<?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Linear ...
<resources> <style name="buttonStyle"> <item name="android:textColor">#99ffff80</item> <item name="android:layout_gravity">center</item> <item name="android:background">@drawable/btnbg</item> ...
TableLayout tblLayout = (TableLayout)this.findViewById(R.id.nightElfTbl); TableRow tr = new TableRow(this); TableRow.LayoutParams marginLayoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT); marginLayoutParams.setMargins(5, 5, 5, 5); ...
sadsadsadsa
hisssssss
public static BlocklizedPoint[] generateMap(int x1, int x2, int y1, int y2, int numberOfDots,int numberOfBlock) { double mu = 3; double sigma = 1; int[] x = new int[numberOfDots]; int[] y = new int[numberOfDots]; int xDevideBy = (x2 - x1)/numberOfBlock; int yDevideB ...

sas

package com.jleo.pickitup; class CityResourceManager { def cityName BlocklizedPoint[] points = new BlocklizedPoint[0]; Map<String, List<BlocklizedPoint>> blockMap = new HashMap<String, List<BlocklizedPoint>>(); public CityResourceManager(City city){ ...
package com.jleo.pickitup; import java.math.BigDecimal; /** * User: skf22773 * Date: Apr 13, 2010 * Time: 9:48:06 AM */ public class BlocklizedPoint { int x; int y; int zonex; int zoney; def attachment @Override public String toString() { ...
package com.jleo.pickitup class City { String name //the 4 properties below defines how large the city is,almost all resources are generated inside this block int upperLeftX int upperRightX int bottomLeftY int bottomRightY int numberOfResources//how much reso ...
sadas

asd

package com.jleo.pickitup; import java.math.BigDecimal; /** * User: skf22773 * Date: Apr 13, 2010 * Time: 9:48:06 AM */ public class Point { int x; int y; int zonex; int zoney; @Override public String toString() { return "Point{" + ...
package com.jleo.pickitup; import org.apache.commons.collections.list.TreeList; import java.math.BigDecimal; import java.util.*; public class Norm{ public static double normrnd(double mu, double sigma) { double N = 12; double x = 0, temp = N; do { x = 0; for (int i = 0; i ...
import com.jleo.pickitup.Norm class BootStrap { def init = { servletContext -> Device device = new Device(deviceId:'hi',devicePassword:'hi') device.save(flush:true); ResourceType rt = new ResourceType(type:1,title:'titile',description:'description') ...
package com.jleo.pickitup; public class Norm{ public static double normrnd(double mu, double sigma) { double N = 12; double x = 0, temp = N; do { x = 0; for (int i = 0; i < N; i++) x = x + (Math.random()); x = (x - temp / 2) / (Math.sqrt(temp / 12)); x = mu + x * ...
Global site tag (gtag.js) - Google Analytics