All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zerotoheroes.hsgameentities.replaydata.gameactions.ChosenEntities Maven / Gradle / Ivy

There is a newer version: 1.0.37
Show newest version
package com.zerotoheroes.hsgameentities.replaydata.gameactions;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessOrder;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorOrder;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

import com.zerotoheroes.hsgameentities.replaydata.GameData;
import com.zerotoheroes.hsgameentities.replaydata.meta.Choice;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
@ToString
public class ChosenEntities extends GameData {

	@XmlAttribute(name = "entity")
	private int entity;

	@XmlAttribute(name = "playerID")
	private int playerId;

	@XmlAttribute(name = "count")
	private int count;

	@XmlElement(name = "Choice")
	private List choices = new ArrayList<>();

	public ChosenEntities(String timestamp, int entity, int playerId, int count, List choices) {
		super(timestamp);
		this.entity = entity;
		this.playerId = playerId;
		this.count = count;
		this.choices = choices;
		this.timestamp = timestamp;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy