欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

sss

程序员文章站 2022-04-20 14:48:52
...
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 = {
}
}
相关标签: performance