Update of /cvsroot/timewarp/source/melee
In directory sc8-pr-cvs1:/tmp/cvs-serv1813/source/melee
Modified Files:
mship.h mshppan.cpp
Log Message:
makes it easier to manipulate a ship panel by a ship
Index: mship.h
===================================================================
RCS file: /cvsroot/timewarp/source/melee/mship.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** mship.h 15 Nov 2003 11:04:17 -0000 1.10
--- mship.h 22 Nov 2003 18:16:31 -0000 1.11
***************
*** 159,165 ****
virtual RGB crewPanelColor(int k = 0);
-
virtual RGB battPanelColor(int k = 0);
!
--- 159,164 ----
virtual RGB crewPanelColor(int k = 0);
virtual RGB battPanelColor(int k = 0);
! virtual bool custom_panel_update(BITMAP *panel, int display_type) {return false;};
Index: mshppan.cpp
===================================================================
RCS file: /cvsroot/timewarp/source/melee/mshppan.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** mshppan.cpp 31 Oct 2003 13:58:34 -0000 1.13
--- mshppan.cpp 22 Nov 2003 18:16:31 -0000 1.14
***************
*** 210,214 ****
void ShipPanel::draw_stuff (int x, int y, int w, int h, int dx, int dy, int m, int value, int max, int display_type, int bcolor)
! {STACKTRACE
// erase the background...
--- 210,219 ----
void ShipPanel::draw_stuff (int x, int y, int w, int h, int dx, int dy, int m, int value, int max, int display_type, int bcolor)
! {
! STACKTRACE;
!
! // custom update by the ship ...
! if (ship->custom_panel_update(panel, display_type))
! return;
// erase the background...
|