public AbstractBuildingView( final AbstractScreen screen, MapGrid map, AbstractBuildingItem building) { mBuilding = building; mMap = map; mScreen = screen; mBuildingTexture = loadBuildingTexture(); map.setChildPosition(this, building.getX(), building.getY()); map.addActor(this); }
@Override public void act(float delta) { mMap.setChildPosition(this, mBuilding.getX(), mBuilding.getY()); }