BWAPI
SPAR/AIModule/SparAIModule/DecisionMaking/Layer2Actions/Interface/Actions/Attack.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "GroupTacticalAction.h"
00003 
00004 namespace layer2
00005 {
00006   class Attack : public virtual GroupTacticalAction
00007   {
00008   public:
00009     Attack(unsigned int priority, const PersistentUnitGroup* initialGroup) // TODO: target
00010       : GroupTacticalAction(priority, initialGroup)
00011       , TacticalAction(priority)
00012       , Process(Spar)
00013     {
00014     }
00015 
00016     virtual std::string getName() const
00017     {
00018       return "Attack";
00019     }
00020 
00021   protected:
00022     virtual void output(std::ostream& out) const
00023     {
00024       GroupTacticalAction::output(out);
00025 
00026       out << "Attack(" << getGroup()->getName() << ")";
00027     }
00028   };
00029 }
00030 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines