Changeset View
Changeset View
Standalone View
Standalone View
ksirk/GameLogic/aiplayerio.h
Show All 33 Lines | |||||
34 | /** | 34 | /** | ||
35 | * This is the IO device used by AI players | 35 | * This is the IO device used by AI players | ||
36 | * @author Gaël de Chalendar (aka Kleag) | 36 | * @author Gaël de Chalendar (aka Kleag) | ||
37 | */ | 37 | */ | ||
38 | class AIPlayerIO : public KGameIO | 38 | class AIPlayerIO : public KGameIO | ||
39 | { | 39 | { | ||
40 | public: | 40 | public: | ||
41 | /** Constructor of the IO device for the given AI player. */ | 41 | /** Constructor of the IO device for the given AI player. */ | ||
42 | AIPlayerIO(AIPlayer* aiplayer); | 42 | explicit AIPlayerIO(AIPlayer* aiplayer); | ||
43 | 43 | | |||
44 | /** Default destructor. */ | 44 | /** Default destructor. */ | ||
45 | ~AIPlayerIO() override; | 45 | ~AIPlayerIO() override; | ||
46 | 46 | | |||
47 | /** | 47 | /** | ||
48 | * The KGame IO devices must have a rtti function returning a value | 48 | * The KGame IO devices must have a rtti function returning a value | ||
49 | * different for each different IO class. | 49 | * different for each different IO class. | ||
50 | */ | 50 | */ | ||
51 | int rtti () const override {return AIPLAYERIO;} | 51 | int rtti () const override {return AIPLAYERIO;} | ||
52 | }; | 52 | }; | ||
53 | 53 | | |||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | #endif | 58 | #endif |