diff options
author | Colin Snover | 2016-03-05 23:56:38 -0600 |
---|---|---|
committer | Colin Snover | 2016-03-06 21:34:43 -0600 |
commit | 1337cd3dec86d64476bc4248e8368848d70b56e5 (patch) | |
tree | 4105f3a2bfdaac514ecb1996ef84b6d5af735677 /engines/sci/graphics/plane32.h | |
parent | 8a460ab3fa5e42f05ec9d96c059e3576d0da7645 (diff) | |
download | scummvm-rg350-1337cd3dec86d64476bc4248e8368848d70b56e5.tar.gz scummvm-rg350-1337cd3dec86d64476bc4248e8368848d70b56e5.tar.bz2 scummvm-rg350-1337cd3dec86d64476bc4248e8368848d70b56e5.zip |
SCI32: Implement kEditText
Diffstat (limited to 'engines/sci/graphics/plane32.h')
-rw-r--r-- | engines/sci/graphics/plane32.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/engines/sci/graphics/plane32.h b/engines/sci/graphics/plane32.h index be6f71464a..65df19d924 100644 --- a/engines/sci/graphics/plane32.h +++ b/engines/sci/graphics/plane32.h @@ -133,7 +133,7 @@ private: * synchronised to another plane (which calls * changePic). */ - bool _pictureChanged; // ? + bool _pictureChanged; // TODO: Are these ever actually used? int _field_34, _field_38; // probably a point or ratio @@ -241,10 +241,18 @@ public: */ static void init(); - Plane(const Common::Rect &gameRect); + // NOTE: This constructor signature originally did not accept a + // picture ID, but some calls to construct planes with this signature + // immediately set the picture ID and then called setType again, so + // it made more sense to just make the picture ID a parameter instead. + Plane(const Common::Rect &gameRect, PlanePictureCodes pictureId = kPlanePicColored); + Plane(const reg_t object); + Plane(const Plane &other); + void operator=(const Plane &other); + inline bool operator<(const Plane &other) const { // TODO: In SCI engine, _object is actually a uint16 and can either // contain a MemID (a handle to MemoryMgr, similar to reg_t) or @@ -318,12 +326,6 @@ private: inline void addPicInternal(const GuiResourceId pictureId, const Common::Point *position, const bool mirrorX); /** - * If the plane is a picture plane, re-adds all cels - * from its picture resource to the plane. - */ - void changePic(); - - /** * Marks all screen items to be deleted that are within * this plane and match the given picture ID. */ @@ -352,6 +354,13 @@ public: */ void addPic(const GuiResourceId pictureId, const Common::Point &position, const bool mirrorX); + /** + * If the plane is a picture plane, re-adds all cels + * from its picture resource to the plane. Otherwise, + * just clears the _pictureChanged flag. + */ + void changePic(); + #pragma mark - #pragma mark Plane - Rendering private: |