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 resource are there in the city
int numberOfSegments//how much segments are there in x bar,this greatly affects the performance
static hasMany = [ resources : Resource ]
static constraints = {
}
}
sss
最新推荐文章于 2024-04-25 18:34:04 发布