Exemplo n.º 1
0
	public button_struct clone()
	{
		button_struct varCopy = new button_struct();

		varCopy.active = this.active;
		varCopy.type = this.type;
		varCopy.val = this.val;
		varCopy.loc = this.loc.clone();
		varCopy.dest = this.dest.clone();
		varCopy.clicked = this.clicked;
		varCopy.tiles = this.tiles;
		varCopy.tile = CollectionUtils.copyOf(this.tile);
		varCopy.tile_color =this.tile_color;
		varCopy.text_tile = this.text_tile;
		varCopy.text_label = this.text_label;
		varCopy.locked = this.locked;

		return varCopy;
	}
Exemplo n.º 2
0
 public AnimationHelper(AnimationHelper animation) {
   leftImages = (LTexture[]) CollectionUtils.copyOf(animation.leftImages);
   downImages = (LTexture[]) CollectionUtils.copyOf(animation.downImages);
   upImages = (LTexture[]) CollectionUtils.copyOf(animation.upImages);
   rightImages = (LTexture[]) CollectionUtils.copyOf(animation.rightImages);
 }