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

« back to all changes in this revision

Viewing changes to bear-engine/core/src/engine/expr/check_item_class.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
23
23
*/
24
24
/**
25
25
 * \file check_item_class.hpp
26
 
 * \brief An expression that checks if a colliding item is a given class
27
 
 *        instance.
 
26
 * \brief An expression that checks if a colliding item is an instance of a
 
27
 *        given class.
28
28
 * \author Julien Jorge
29
29
 */
30
30
#ifndef __ENGINE_CHECK_ITEM_CLASS_HPP__
31
31
#define __ENGINE_CHECK_ITEM_CLASS_HPP__
32
32
 
33
 
#include "engine/expr/base_boolean_expression.hpp"
 
33
#include "expr/base_boolean_expression.hpp"
34
34
#include "engine/expr/collision_in_expression.hpp"
35
35
 
36
36
#include "engine/class_export.hpp"
40
40
  namespace engine
41
41
  {
42
42
    /**
43
 
     * \brief An expression that checks if a colliding item is a given class
44
 
     *        instance.
 
43
     * \brief An expression that checks if a colliding item is an instance of a
 
44
     *        given class.
45
45
     *
46
46
     * \remark This expression does not check the parent classes.
 
47
     * \sa check_item_class_hierarchy
47
48
     * \author Julien Jorge
48
49
     */
49
50
    class ENGINE_EXPORT check_item_class:
50
 
      public base_boolean_expression
 
51
      public expr::base_boolean_expression
51
52
    {
52
53
    public:
53
54
      void set_class_name( const std::string& class_name );
56
57
      void set_collision_data( const collision_in_expression& data );
57
58
      const collision_in_expression& get_collision_data() const;
58
59
 
59
 
      base_boolean_expression* clone() const;
 
60
      expr::base_boolean_expression* clone() const;
60
61
      bool evaluate() const;
61
62
 
62
63
    private: