ai_base.hpp

Go to the documentation of this file.
00001 /* $Id: ai_base.hpp 15060 2009-01-13 15:44:36Z smatz $ */
00002 
00005 #ifndef AI_BASE_HPP
00006 #define AI_BASE_HPP
00007 
00008 #include "ai_object.hpp"
00009 
00019 class AIBase : public AIObject {
00020 public:
00021   static const char *GetClassName() { return "AIBase"; }
00022 
00027   static uint32 Rand();
00028 
00034   static uint32 RandItem(int unused_param);
00035 
00041   static uint RandRange(uint max);
00042 
00049   static uint RandRangeItem(int unused_param, uint max);
00050 
00058   static bool Chance(uint out, uint max);
00059 
00068   static bool ChanceItem(int unused_param, uint out, uint max);
00069 };
00070 
00071 #endif /* AI_BASE_HPP */

Generated on Mon Mar 9 23:33:45 2009 for openttd by  doxygen 1.5.6