Filippos Karapetis
26392eb7cf
TRECISION: Clean up includes
2021-05-29 21:24:27 +01:00
Strangerke
71288e27d2
TRECISION: Introduce TextManager
2021-05-29 21:24:27 +01:00
Filippos Karapetis
5e9ba41e3a
TRECISION: Move the cursor related functions into GraphicsManager
2021-05-29 21:24:25 +01:00
Filippos Karapetis
61af3deb07
TRECISION: Simplify some screen buffer clearing calls
2021-05-29 21:24:25 +01:00
Strangerke
299551b0fd
TRECISION: Use Common::Point in several places instead of 2 int16
2021-05-29 21:24:24 +01:00
Strangerke
3bc1ec607d
TRECISION: get rid of sysdef.h
2021-05-29 21:24:24 +01:00
Filippos Karapetis
dbe1fddb0e
TRECISION: Move _screenBuffer and change it to a Graphics::Surface
2021-05-29 21:24:24 +01:00
Strangerke
4c54b6ea46
TRECISION: Move 3 variables out of globvar, remove globvar.cpp, process.cpp and extern.h
2021-05-29 21:24:22 +01:00
Filippos Karapetis
303ece965e
TRECISION: Refactor object visibility
...
- Added methods to toggle and query object visibility
- Added methods to update object animations
- All dirty rect handling is done inside setObjectVisible()
- The above allows the complete removal of the associated object
visibility methods and variables (RegenRoom(), PaintRegenRoom(),
VideoObjStatus, OldObjStatus
- Object dirty rects are now set once when the room changes in
InitRegenRoom(), and are updated when any call to change object
visibility is made to setObjectVisible()
2021-05-29 21:24:21 +01:00
Strangerke
85fa769d35
TRECISION: Move some global code to a new class PathFinding3D (WIP)
2021-05-29 21:24:19 +01:00
Strangerke
3094e4ba68
TRECISION: Move 3Drend into a renderer class
2021-05-29 21:24:18 +01:00
Strangerke
c6f05ae53b
TRECISION: Move two functions to Actor, fix some warnings by using some unsigned variables and parameters
2021-05-29 21:24:17 +01:00
Filippos Karapetis
baf34e1fa4
TRECISION: Remove dead code (_flagScreenRefreshed flag)
...
It's set to true in ProcessTime() which is the first function to run
inside the game loop. Afterwards, it's never set to false, so
practically it's always true
2021-05-29 21:24:14 +01:00
Filippos Karapetis
db1afeb733
TRECISION: Remove dead code
...
- FromSomeOneSay is always false
- _flagSkipEnable is always true after someone starts talking and is
never set to false
- _flagSkipEnable is a uint16 and can never equal 99999 (bug from
the original code)
2021-05-29 21:24:14 +01:00
SupSuper
9982387dce
TRECISION: Only enable ScummVM saves when game allows it
2021-05-29 21:24:13 +01:00
Strangerke
c061fe823d
TRECISION: Move define.h
2021-05-29 21:24:12 +01:00
Strangerke
ab16163989
TRECISION: Move some functions to utils and script
2021-05-29 21:24:12 +01:00
Strangerke
ff54bf5c1a
TRECISION: Move some functions to the main class in script.cpp
2021-05-29 21:24:12 +01:00
Filippos Karapetis
09e0f7bf33
TRECISION: Whitespace cleanup
2021-05-29 21:24:11 +01:00
Filippos Karapetis
45829f6b68
TRECISION: Use Common::Rect instead of individual rect dimensions
2021-05-29 21:24:11 +01:00
Strangerke
d84937818c
TRECISION: rename some members of TrecisionEngine, remove a useless member
2021-05-29 21:24:10 +01:00
Strangerke
8a829fd48b
TRECISION: Move QuitGame and DemoOver to script
2021-05-29 21:24:04 +01:00
Strangerke
9c357d1031
TRECISION: Remove comments before functions which only duplicate the function name
2021-05-29 21:24:04 +01:00
Filippos Karapetis
a6f866fff3
TRECISION: Rename eventIsEmpty() to isEmptyEvent()
2021-05-29 21:23:45 +01:00
Filippos Karapetis
6880518164
TRECISION: Add a helper for empty events in the SScriptFrame struct
2021-05-29 21:23:45 +01:00
Strangerke
b3ab113d59
TRECISION: Move doSys to logic manager, remove utility.cpp
2021-05-29 21:23:43 +01:00
Filippos Karapetis
0ef6f5d64a
TRECISION: Simplify the mouse handling code
2021-05-29 21:23:42 +01:00
Strangerke
d9a0032472
TRECISION: Some renaming in trecision header
2021-05-29 21:23:36 +01:00
Strangerke
90d71057ed
TRECISION: remove useless g_vm in script
2021-05-29 21:23:36 +01:00
Strangerke
af5c75bffa
TRECISION: Move more functions to main class
2021-05-29 21:23:07 +01:00