#pragma once #include #include #include class PlayerT { public: PlayerT(std::string n, std::vector & t) : team{t}, name{n} {}; virtual ~PlayerT()=default; virtual void Catch( void ); virtual int Toss( void ) = 0; virtual std::string GetName( void )const; virtual std::string TossType(void ) const = 0; virtual int GetCount( void ) const; protected: std::vector & team; int GetMyPosition(void) const; private: int count{0}; std::string name; };