~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_brick/item_with_single_player_control_reader.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
62
62
 
63
63
    bool set_u_integer_field( const std::string& name, unsigned int value );
64
64
 
 
65
    unsigned int get_player_index() const;
 
66
 
65
67
  protected:
66
 
    /**
67
 
     * \brief Start an action asked by the human player.
68
 
     * \param a The action.
69
 
     */
70
 
    virtual void start_action( player_action::value_type a ) = 0;
71
 
 
72
 
    /**
73
 
     * \brief Continue an action asked by the human player.
74
 
     * \param elapsed_time How long the action is done.
75
 
     * \param a The action.
76
 
     */
 
68
    virtual void start_action( player_action::value_type a );
77
69
    virtual void do_action
78
 
    ( bear::universe::time_type elapsed_time, player_action::value_type a ) = 0;
79
 
 
80
 
    /**
81
 
     * \brief Stop an action asked by the human player.
82
 
     * \param a The action.
83
 
     */
84
 
    virtual void stop_action( player_action::value_type a ) = 0;
 
70
    ( bear::universe::time_type elapsed_time, player_action::value_type a );
 
71
    virtual void stop_action( player_action::value_type a );
85
72
 
86
73
    void set_player_index( unsigned int i );
87
 
    unsigned int get_player_index() const;
88
74
 
89
75
  private:
90
76
    void start_action( unsigned int player_index, player_action::value_type a );