1 package org
.alterverse
.world
;
3 public class Building
extends GameObject
{
4 public Building(Area area
,double x
, double y
, double z
) {
5 super(area
,new Box(x
,y
,z
,1.0,1.0,1.0));
9 public Story
addStory() {
11 if (numChildren() ==0)
12 story
= new Story(this,x
,y
,z
);
14 story
= new Story(this,x
,getChild(numChildren()-1).getY()+8.0,z
);
20 public void resize() {
24 for (int i
= 0; i
< numChildren(); i
++) {
25 GameObject child
= getChild(i
);
33 setShape(new Box(x
,y
,z
,mx
,my
+8.0,mz
));