~ubuntu-branches/ubuntu/maverick/btanks/maverick

« back to all changes in this revision

Viewing changes to engine/controls/control_method.h

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2010-01-17 00:02:57 UTC
  • mfrom: (4.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100117000257-iw6esnvsz1rvp6kb
Tags: 0.9.8083-2
* Fix build failure when building only arch-specific package.
* debian/control: Add DM-Upload-Allowed: yes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define __BTANKS_CONTROL_METHOD_H__
3
3
 
4
4
/* Battle Tanks Game
5
 
 * Copyright (C) 2006-2008 Battle Tanks team
 
5
 * Copyright (C) 2006-2009 Battle Tanks team
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or
8
8
 * modify it under the terms of the GNU General Public License
36
36
 
37
37
class ControlMethod {
38
38
protected:
39
 
        virtual void _updateState(PlayerSlot &slot, PlayerState &state) = 0;
 
39
        virtual void _updateState(PlayerSlot &slot, PlayerState &state, const float dt) = 0;
 
40
        virtual void get_name(std::vector<std::string> &controls, const PlayerState &state) const = 0;
40
41
public: 
41
42
        ControlMethod();
42
43
        void updateState(PlayerSlot &slot, PlayerState &state, const float dt);
43
 
        virtual void probe() const = 0;
 
44
        const std::string get_name(PlayerState& state) const;
 
45
        
44
46
        virtual ~ControlMethod() {}
45
47
private: 
46
48
        bool _release_set;