package extend.mj.tip;

import com.taurus.core.entity.ITArray;
import com.taurus.core.entity.ITObject;
import com.taurus.core.entity.TObject;

/**
 * tip������
 * 
 * 
 *
 *         2017��8��30�� Tip.java
 */
public class Tip {
	public int			id;
	public IRuleBase	rule;
	public int			weight;
	public int			card;
	public ITArray		opcard;
	public int			winType;
	public int			type;

	public Tip(int card, ITArray opcard, int weight, IRuleBase rule, int type) {
		this.rule = rule;
		this.weight = weight;
		this.opcard = opcard;
		this.card = card;
		this.type = type;
	}

	public ITObject toMP() {
		ITObject tipMp = new TObject();
		tipMp.putInt("id", id);
		tipMp.putInt("weight", weight);
		tipMp.putInt("type", type);
		tipMp.putInt("card", card);
		tipMp.putTArray("opcard", opcard);
		return tipMp;
	}
}
