Summary Files Commits Branches @commit @diff @stats
path: root / src / Television.cpp
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--src/Television.cpp16
diff --git a/src/Television.cpp b/src/Television.cpp
new file mode 100644
index 0000000..cf60d73
--- /dev/null
+++ b/src/Television.cpp
@@ -0,0 +1,16 @@
+#include "Television.h"
+#include "cli.hpp"
+
+Television::Television(mm width, mm height) : Screen(width, height) { }
+
+Television::~Television() { }
+
+Television* Television::fromCommandLine() {
+ mm iwidth = 0;
+ cli::readUserInput(iwidth, "Enter width (in mm): ", "Invalid width, try again!");
+
+ mm iheight = 0;
+ cli::readUserInput(iheight, "Enter height (in mm): ", "Invalid height, try again!");
+
+ return new Television(iwidth, iheight);
+}