~ubuntu-branches/ubuntu/natty/plee-the-bear/natty

« back to all changes in this revision

Viewing changes to bear-engine/core/src/universe/physical_item.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  Bear Engine
3
3
 
4
 
  Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
  Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
  This program is free software; you can redistribute it and/or modify it
7
7
  under the terms of the GNU General Public License as published by the
32
32
 
33
33
#include "universe/item_handle.hpp"
34
34
#include "universe/physical_item_state.hpp"
35
 
#include "universe/zone.hpp"
36
35
#include "universe/environment_type.hpp"
37
36
#include "universe/world_progress_structure.hpp"
38
37
#include "universe/forced_movement/forced_movement.hpp"
46
45
  namespace universe
47
46
  {
48
47
    class collision_info;
 
48
    class item_handle;
 
49
    class const_item_handle;
49
50
    class base_link;
50
51
    class world;
51
52
 
100
101
      virtual void move( time_type elapsed_time );
101
102
      virtual void collision( collision_info& info );
102
103
 
 
104
      bool collides_with( const physical_item& that ) const;
 
105
 
103
106
      // public only for world
104
107
      void set_owner(world& owner);
105
108
      world_progress_structure& get_world_progress_structure();
124
127
 
125
128
      void adjust_cinetic();
126
129
 
 
130
      bool has_owner() const;
 
131
      const world& get_owner() const;
 
132
 
127
133
    protected:
128
 
      bool has_owner() const;
129
 
      world& get_owner() const;
130
 
 
131
134
      void default_move( time_type elapsed_time );
132
135
      bool default_collision( collision_info& info );
133
136
 
158
161
 
159
162
      void update_position( time_type elapsed_time );
160
163
 
 
164
      physical_item& operator=(const physical_item&);
 
165
 
161
166
    private:
162
167
      /** \brief Forced movement applied to this item, NULL if none. */
163
168
      forced_movement m_forced_movement;