Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. class Core{
  2. private:
  3.     string filepath;
  4.     int time;
  5.     int volume;
  6. public:
  7.     void Play();
  8.     void Pause();
  9.     void Stop();
  10.     void SetTime(int newtime);
  11.     int GetTime();
  12.     void SetVolume(int newvol);
  13.     int GetVolume();
  14.     void SetFilePatn(string newpath);
  15.     string GetFilePath();
  16. };
  17.  
  18. class Config {
  19.     \\параметры конфигурации какие-нибудь
  20. public:
  21.     LoadConfigFromFile(string filename);
  22.     int GetSomething1();
  23.     int GetSomething2();
  24. }
  25.  
  26. class Player {
  27.     Core core;
  28.     Config conf;
  29.     \\....
  30. };
Add Comment
Please, Sign In to add comment