Exemplo n.º 1
0
    public Create(EntityAbility info, GameObject gameObject) : base(info, gameObject)
    {
		_entity = _gameObject.GetComponent<IGameEntity>();

		switch (_info.targetType)
		{
			case EntityType.UNIT:
				_infoToBuild = Info.get.of(_info.targetRace, _info.targetUnit);
				break;

			case EntityType.BUILDING:
				_infoToBuild = Info.get.of(_info.targetRace, _info.targetBuilding);
				break;
		}
    }
Exemplo n.º 2
0
 public Sell(EntityAbility info, GameObject gameObject) :
     base(info, gameObject)
 {
 }
Exemplo n.º 3
0
 public GenericAbility(EntityAbility info, GameObject gameObject) :
     base(info, gameObject)
 {
 }
Exemplo n.º 4
0
    public bool enoughResources(EntityAbility info)
    {
        if (info.targetType.Equals(EntityType.BUILDING))
            return enoughResources(Info.get.of(info.targetRace, info.targetBuilding).resources);

        return enoughResources(Info.get.of(info.targetRace, info.targetUnit).resources);
    }
Exemplo n.º 5
0
 public ChangeWatchtowerDirection(EntityAbility info, GameObject gameObject) :
     base(info, gameObject)
 {
 }
Exemplo n.º 6
0
 public RecruitExplorer(EntityAbility info, GameObject gameObject) : base(info, gameObject)
 {
     _entity = _gameObject.GetComponent<IGameEntity>();
 }