--- nono/lib/object.h 2026/04/29 17:04:34 1.1.1.3 +++ nono/lib/object.h 2026/04/29 17:04:37 1.1.1.4 @@ -14,11 +14,11 @@ // // ログ出力機能を持つ。 // -class Object +class Object : public IMonitor { public: Object(); - virtual ~Object(); + virtual ~Object() override; // // ログ @@ -79,13 +79,9 @@ class Object // // モニター更新 (派生クラス側で用意) - // 戻り値はモニタースクリーンの有無。 - // 基底クラスのこれはモニタースクリーンを提供していないので false を返す。 - // 派生クラス側のは必ず true を返すこと。 - virtual bool MonitorUpdate(); - - // モニター用のテキストスクリーン - TextScreen monitor; + void MonitorUpdate(TextScreen&) override { } + nnSize GetMonitorSize() override { return monitor_size; } + nnSize monitor_size {}; }; // 全オブジェクトのリスト