www.pudn.com > MobiCraft_src.rar > UnitAction.java
// style: tabs, tabsize=4, style=ANSI
//+----------------------------------------------------------------------+
// Copyright (c) 2006 Company Name
// Made by Andrew and Zahar
//+----------------------------------------------------------------------+
// Filename: UnitAction.java
//+----------------------------------------------------------------------+
// Comment: Units Actions. Type, Power and so on.
//+----------------------------------------------------------------------+
package battle;
public class UnitAction
{
// public Image mIcon; // Иконка действия, для отображения при выборе
public int mType; //20061118 Black помимо прочего обозначает номер иконки в файле иконок (!!!ВНИМАНИЕ!!! нумерация иконок с 1, 0 - пустое действие)
public final static int ACTION_NONE= 0;
public final static int ACTION_ATTACK_MELEE= 1;
public final static int ACTION_ATTACK_RANGE_SHORT= 2;
public final static int ACTION_ATTACK_RANGE_LONG= 3;
public final static int ACTION_ATTACK_RANGE_SPLASH= 4;
public final static int ACTION_ATTACK_RANGE_LURKER= 5;
public final static int ACTION_ATTACK_RANGE_GROUND= 25;
public final static int ACTION_ATTACK_FIREBAT= 22;
public final static int ACTION_HEAL= 6;
public final static int ACTION_BURROW= 7;
public final static int ACTION_SIEGE= 8;
public final static int ACTION_STIMPACK= 9;
public final static int ACTION_PLAGUE= 10;
public final static int ACTION_SWARM= 11;
public final static int ACTION_CONSUME= 12;
public final static int ACTION_STORM= 13;
public final static int ACTION_RETREAT= 14;
public final static int ACTION_LOCKDOWN= 15;
public final static int ACTION_IRRADIATE= 16;
public final static int ACTION_EMP= 17;
public final static int ACTION_DEFENCEMATRIX= 18;
public final static int ACTION_CLOACK= 19;
public final static int ACTION_ENSNARE= 20;
public final static int ACTION_BROODLING= 21;
public final static int ACTION_MINDCONTROL= 23;
public final static int ACTION_MAELSTORM= 24;
public final static int ACTION_FEEDBACK= 26;
// public final static int ACTION_MOVE= 15; //20061112_Black будет ли?
//ZAHAR_COMMENTED public final static int ACTION_= ;
public int iPower; // Сила атаки (дамаг/количество восстановленных хитов)
public int iCost; //20070131 Black Стоимость действия (Магии - в мане, Стимпака - в хитах)
public int iDuration; //20061209 Black время, затрачиваемое на действие
public int iInfluenceTime; //20061210 Black время воздействия (снятие хитов и проч.)
// public EffectAnimationSprite EffectAnimation; //20061112_Black Может быть NULL. Какой-то отдельный класс, но это ты лучше сделаешь =)
/** Creates a new instance of UnitAction */
public UnitAction(int itype, int ipower, int icost, int iduration, int iinfluencetime)
{
mType = itype;
iPower = ipower;
iCost = icost;
iDuration = iduration;
iInfluenceTime = iinfluencetime;
}
}