# ai_subsidy.hpp

Go to the documentation of this file.

    00001 /* $Id: ai_subsidy.hpp 15060 2009-01-13 15:44:36Z smatz $ */
    00002
    00005 #ifndef AI_SUBSIDY_HPP
    00006 #define AI_SUBSIDY_HPP
    00007
    00008 #include "ai_object.hpp"
    00009 #include "ai_company.hpp"
    00010
    00014 class AISubsidy : public AIObject {
    00015 public:
    00016   static const char *GetClassName() { return "AISubsidy"; }
    00017
    00023   static bool IsValidSubsidy(SubsidyID subsidy_id);
    00024
    00031   static bool IsAwarded(SubsidyID subsidy_id);
    00032
    00039   static AICompany::CompanyID GetAwardedTo(SubsidyID subsidy_id);
    00040
    00051   static int32 GetExpireDate(SubsidyID subsidy_id);
    00052
    00060   static CargoID GetCargoType(SubsidyID subsidy_id);
    00061
    00068   static bool SourceIsTown(SubsidyID subsidy_id);
    00069
    00079   static int32 GetSource(SubsidyID subsidy_id);
    00080
    00087   static bool DestinationIsTown(SubsidyID subsidy_id);
    00088
    00098   static int32 GetDestination(SubsidyID subsidy_id);
    00099 };
    00100
    00101 #endif /* AI_SUBSIDY_HPP */