[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-cvs] enigma/src objects.hh,1.53,1.54
From: |
Ralf Westram <address@hidden> |
Subject: |
[Enigma-cvs] enigma/src objects.hh,1.53,1.54 |
Date: |
Tue, 21 Oct 2003 19:47:19 +0000 |
Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv25331
Modified Files:
objects.hh
Log Message:
- added get_max_radius() to determine max. actor radius (hardcoded value)
- Object+Actor: fixed const-correctness of some predicates
Index: objects.hh
===================================================================
RCS file: /cvsroot/enigma/enigma/src/objects.hh,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** objects.hh 20 Oct 2003 17:05:17 -0000 1.53
--- objects.hh 21 Oct 2003 19:47:16 -0000 1.54
***************
*** 350,355 ****
virtual void actor_contact (Actor */*a*/) {}
! virtual bool is_movable() { return false;}
! virtual bool is_removable() { return true;}
virtual bool is_floating() const { return false; }
--- 350,355 ----
virtual void actor_contact (Actor */*a*/) {}
! virtual bool is_movable() const { return false;}
! virtual bool is_removable() const { return true;}
virtual bool is_floating() const { return false; }
***************
*** 381,390 ****
virtual void on_respawn (const px::V2 &pos);
! virtual bool is_dead() = 0;
! virtual bool is_movable() { return true; }
! virtual bool is_flying() { return false; }
! virtual bool is_on_floor() { return true; }
! virtual bool can_drop_items() { return false; }
virtual bool has_shield() const { return false; }
--- 381,390 ----
virtual void on_respawn (const px::V2 &pos);
! virtual bool is_dead() const = 0;
! virtual bool is_movable() const { return true; }
! virtual bool is_flying() const { return false; }
! virtual bool is_on_floor() const { return true; }
! virtual bool can_drop_items() const { return false; }
virtual bool has_shield() const { return false; }
***************
*** 417,420 ****
--- 417,422 ----
bool has_spikes() const { return spikes; }
void set_spikes(bool has) { spikes = has; }
+
+ static double get_max_radius(); // max. radius of all actors
protected:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Enigma-cvs] enigma/src objects.hh,1.53,1.54,
Ralf Westram <address@hidden> <=