~ubuntu-branches/ubuntu/trusty/plee-the-bear/trusty-proposed

« back to all changes in this revision

Viewing changes to plee-the-bear/src/ptb/item/passive_enemy.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
39
39
{
40
40
  /**
41
41
   * \brief The class describing a passive enemy.
 
42
   *
 
43
   * The valid fields for this item are
 
44
   *  - \a type_right_side: \c (string) The type of right side
 
45
   * possible values: inactive, solid, attack.
 
46
   *  - \a type_left_side: \c (string) The type of left side
 
47
   * possible values: inactive, solid, attack.
 
48
   *  - \a type_bottom_side: \c (string) The type of bottom side
 
49
   * possible values: inactive, solid, attack.
 
50
   *  - \a type_top_side: \c (string) The type of top side
 
51
   * possible values: inactive, solid, attack.
 
52
   *
42
53
   * \author S�bastien Angibaud
43
54
   */
44
55
  class passive_enemy:
45
56
    public monster_item
46
57
    < bear::engine::item_with_friction
47
58
      < bear::engine::item_with_decoration
48
 
        < bear::engine::basic_renderable_item<bear::engine::base_item> >
 
59
        < bear::engine::basic_renderable_item<bear::engine::base_item> >
49
60
      >
50
61
    >
51
62
  {
52
 
    DECLARE_BASE_ITEM(passive_enemy, ptb);
 
63
    DECLARE_BASE_ITEM(passive_enemy);
53
64
 
54
65
  public:
55
66
    /** \brief The type of the parent class. */
56
67
    typedef monster_item
57
68
    < bear::engine::item_with_friction
58
69
      < bear::engine::item_with_decoration
59
 
      < bear::engine::basic_renderable_item <bear::engine::base_item> > 
60
 
      > 
 
70
      < bear::engine::basic_renderable_item <bear::engine::base_item> >
 
71
      >
61
72
    > super;
62
73
 
63
74
  public:
75
86
        bear::universe::collision_info& info );
76
87
 
77
88
    bool set_string_field( const std::string& name, const std::string& value );
78
 
    
 
89
 
79
90
  private:
80
91
    bool set_side_type(side_type& side, const std::string& value);
81
92