enigma-cvs
[Top][All Lists]
Advanced

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

[Enigma-cvs] enigma/src world.hh,1.38,1.39


From: Daniel Heck <address@hidden>
Subject: [Enigma-cvs] enigma/src world.hh,1.38,1.39
Date: Wed, 26 Nov 2003 08:17:26 +0000

Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv9919/src

Modified Files:
        world.hh 
Log Message:
- Moved ActorInfo ctor to world.cc.
- Added ActorInfo::ignore_contacts variable.


Index: world.hh
===================================================================
RCS file: /cvsroot/enigma/enigma/src/world.hh,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** world.hh    20 Nov 2003 20:27:06 -0000      1.38
--- world.hh    26 Nov 2003 08:17:24 -0000      1.39
***************
*** 49,58 ****
      class ActorInfo {
      public:
!         ActorInfo(V2 p, V2 v)
!         : pos(p), vel(v), forceacc(),
!           charge(0), mass(1), radius(1),
!           grabbed(false),
!         last_pos(), oldpos(), force()
!         {}
  
        // Public variables
--- 49,55 ----
      class ActorInfo {
      public:
!         // Constructor
! 
!         ActorInfo();
  
        // Public variables
***************
*** 65,68 ****
--- 62,66 ----
        double radius;          // Radius of the sphere
          bool grabbed;         // Actor not controlled by the physics engine
+         bool ignore_contacts;   // Do not perform collision handling
  
        // Variables used internally by the physics engine
***************
*** 246,250 ****
--- 244,253 ----
      void    AddSignal (GridLoc src, GridLoc dst, const string &msg);
      void    EmitSignals (Object *src, int value = 0);
+ 
+     /*! Searches all signals for a signal starting at 'src' and
+       returns the target object.  If multiple signals start from 'src'
+       this function returns 0. */
      Object *FindSignalDestination(Object *src);
+ 
      void BroadcastMessage(const std::string& msg,
                            const enigma::Value& value, GridLayerBits grids);





reply via email to

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