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

« back to all changes in this revision

Viewing changes to bear-engine/lib/src/generic_items/delayed_level_loading.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
30
30
#define __BEAR_DELAYED_LEVEL_LOADING_HPP__
31
31
 
32
32
#include "engine/item_brick/item_with_input_listener.hpp"
33
 
 
 
33
#include "engine/base_item.hpp"
34
34
#include "engine/export.hpp"
35
35
#include "generic_items/class_export.hpp"
36
36
 
45
45
   * - \a fade_duration: real, the duration of the fading effect before starting
46
46
   *   the level (default = 1),
47
47
   * - \a level: string, required. The name of the game variable containing the
48
 
   *   name of the level to load or the name of the level itself,
 
48
   *   path of the level to load or the name of the level itself,
49
49
   * - \a transition_layer_name: string, the name of the transition layer
50
50
   *   receiving the fade effect (default = none).
51
51
   * - \a load_on_input: boolean, tell if the level must starts before the end
57
57
  class GENERIC_ITEMS_EXPORT delayed_level_loading:
58
58
    public engine::item_with_input_listener<engine::base_item>
59
59
  {
60
 
    DECLARE_BASE_ITEM(delayed_level_loading, bear);
 
60
    DECLARE_BASE_ITEM(delayed_level_loading);
61
61
 
62
62
  public:
63
63
    /** \brief The type of the parent class. */
92
92
    std::string get_string_from_vars( const std::string& name ) const;
93
93
 
94
94
  private:
95
 
    /** \brief The name of the level to load. */
96
 
    std::string m_level_name;
 
95
    /** \brief The path of the level to load. */
 
96
    std::string m_level_path;
97
97
 
98
98
    /** \brief The name of the transition layer receiving the fade effect. */
99
99
    std::string m_transition_layer_name;