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

« back to all changes in this revision

Viewing changes to plee-the-bear/src/ptb/item/clingable.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
  Plee the Bear
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
44
44
  class clingable:
45
45
    public bear::engine::base_item
46
46
  {
47
 
    DECLARE_BASE_ITEM(clingable, ptb);
 
47
    DECLARE_BASE_ITEM(clingable);
48
48
 
49
49
  public:
50
50
    /** \brief The type of the parent class. */
51
51
    typedef bear::engine::base_item super;
52
 
    
 
52
 
 
53
    /** \brief The type of the list in which we store the items depending on the
 
54
        train. */
 
55
    typedef std::list<bear::universe::item_handle> item_list;
 
56
 
 
57
  public:
 
58
    void build();
 
59
    void progress( bear::universe::time_type elapsed_time );
 
60
 
 
61
  protected:
 
62
    void move( bear::universe::time_type elapsed_time );
 
63
 
53
64
  private:
54
65
    void collision_check_and_apply
55
66
    ( bear::engine::base_item& that, bear::universe::collision_info& info );
56
67
 
57
68
    void collision
58
69
    ( bear::engine::base_item& that, bear::universe::collision_info& info );
 
70
 
 
71
    void get_dependent_items( std::list<physical_item*>& d ) const;
 
72
 
 
73
  private:
 
74
    /** \brief The list of items that are clung. */
 
75
    item_list m_list_items;
 
76
 
 
77
    /** \brief The list of the items that were clung. */
 
78
    item_list m_old_items;
 
79
 
 
80
    /** \brief The last position of the platform. */
 
81
    bear::universe::position_type m_last_position;
59
82
  }; // class clingable
60
83
} // namespace ptb
61
84