pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/actions angel.cxx,1.1,1.2 basher.cxx,


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/actions angel.cxx,1.1,1.2 basher.cxx,1.2,1.3 boarder.cxx,1.1,1.2 boarder.hxx,1.1,1.2 bomber.cxx,1.1,1.2 bridger.cxx,1.1,1.2 bridger.hxx,1.1,1.2 digger.cxx,1.1,1.2 faller.cxx,1.1,1.2 faller.hxx,1.1,1.2 floater.cxx,1.2,1.3
Date: 19 Jun 2002 15:19:29 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/actions
In directory dark:/tmp/cvs-serv18271/actions

Modified Files:
        angel.cxx basher.cxx boarder.cxx boarder.hxx bomber.cxx 
        bridger.cxx bridger.hxx digger.cxx faller.cxx faller.hxx 
        floater.cxx 
Log Message:
- Initialized some unitialized members
- moved some initializations from body to initlist

This fixes the bug that the level end is not recognized and maybe some bugs
in the actions too


Index: angel.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/angel.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- angel.cxx   12 Jun 2002 19:01:42 -0000      1.1
+++ angel.cxx   19 Jun 2002 15:19:26 -0000      1.2
@@ -22,7 +22,7 @@
 #include "../string_converter.hxx"
 #include "angel.hxx"
 
-Angel::Angel ()
+Angel::Angel () : x_pos(0), counter(0.0)
 {
 }
 

Index: basher.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/basher.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- basher.cxx  13 Jun 2002 14:25:12 -0000      1.2
+++ basher.cxx  19 Jun 2002 15:19:26 -0000      1.3
@@ -29,17 +29,17 @@
 // Initialise class static.
 const int Basher::bash_height = 4;
 
-Basher::Basher()
+Basher::Basher() : basher_c(0), first_bash(true)
 {
 }
 
 void
 Basher::init(void)
 {
+  first_bash = true;
   bash_radius = PingusResource::load_surface ("Other/bash_radius", "pingus");
   sprite = Sprite (PingusResource::load_surface ("Pingus/basher0", "pingus"));
   sprite.set_align_center_bottom ();
-  first_bash = true;
 }
 
 void

Index: boarder.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/boarder.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- boarder.cxx 12 Jun 2002 19:01:42 -0000      1.1
+++ boarder.cxx 19 Jun 2002 15:19:26 -0000      1.2
@@ -22,7 +22,7 @@
 #include "../string_converter.hxx"
 #include "boarder.hxx"
 
-Boarder::Boarder ()
+Boarder::Boarder () : x_pos(0), speed(0.0)
 {
 }
 

Index: boarder.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/boarder.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- boarder.hxx 12 Jun 2002 19:01:42 -0000      1.1
+++ boarder.hxx 19 Jun 2002 15:19:26 -0000      1.2
@@ -28,7 +28,7 @@
 class Boarder : public PinguAction
 {
 private:
-  double counter;
+  //double counter;
   double x_pos;
   double speed;
   Sprite sprite;

Index: bomber.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/bomber.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bomber.cxx  12 Jun 2002 19:01:42 -0000      1.1
+++ bomber.cxx  19 Jun 2002 15:19:26 -0000      1.2
@@ -33,7 +33,7 @@
 CL_Surface Bomber::bomber_radius;
 CL_Surface Bomber::bomber_radius_gfx;
 
-Bomber::Bomber()
+Bomber::Bomber() : particle_thrown(false), sound_played(false), exploded(false)
 {
 }
 

Index: bridger.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/bridger.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bridger.cxx 12 Jun 2002 19:01:42 -0000      1.1
+++ bridger.cxx 19 Jun 2002 15:19:26 -0000      1.2
@@ -36,7 +36,7 @@
 CL_Surface Bridger::brick_r;
 CL_Surface Bridger::static_surface;
 
-Bridger::Bridger()
+Bridger::Bridger() : bricks(15), block_build(false), mode(B_BUILDING) 
 {
 }
 

Index: bridger.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/bridger.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- bridger.hxx 12 Jun 2002 19:01:42 -0000      1.1
+++ bridger.hxx 19 Jun 2002 15:19:26 -0000      1.2
@@ -40,8 +40,8 @@
   static CL_Surface brick_r;
 
   int bricks;
-  int step;
-  int do_steps;
+  //int step;
+  //int do_steps;
   bool block_build;
 
   enum Mode { B_WALKING, B_BUILDING } mode;

Index: digger.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/digger.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- digger.cxx  12 Jun 2002 19:01:42 -0000      1.1
+++ digger.cxx  19 Jun 2002 15:19:26 -0000      1.2
@@ -30,7 +30,7 @@
 #include "../pingu.hxx"
 #include "digger.hxx"
 
-Digger::Digger()
+Digger::Digger() : digger_c(0)
 {
 }
 

Index: faller.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/faller.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- faller.cxx  12 Jun 2002 19:01:42 -0000      1.1
+++ faller.cxx  19 Jun 2002 15:19:26 -0000      1.2
@@ -30,6 +30,10 @@
 
 const float Faller::deadly_velocity = 20.0f;
 
+Faller::Faller() : falling(0) { }
+
+Faller::~Faller() { }
+
 void
 Faller::init(void)
 {

Index: faller.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/faller.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- faller.hxx  12 Jun 2002 19:01:42 -0000      1.1
+++ faller.hxx  19 Jun 2002 15:19:26 -0000      1.2
@@ -34,6 +34,9 @@
   static const float deadly_velocity;
 
 public:
+  Faller();
+  virtual ~Faller();
+  
   void  init(void);
   
   void  update(float delta);

Index: floater.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/floater.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- floater.cxx 13 Jun 2002 14:25:12 -0000      1.2
+++ floater.cxx 19 Jun 2002 15:19:26 -0000      1.3
@@ -20,7 +20,7 @@
 #include "../pingu.hxx"
 #include "floater.hxx"
 
-Floater::Floater()
+Floater::Floater() : falling_depth(0), step(0)
 {
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]