~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/code/action_file_recorder.cpp

  • 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
31
31
#include "ptb/defines.hpp"
32
32
#include "ptb/game_variables.hpp"
33
33
#include "ptb/level_variables.hpp"
34
 
#include "ptb/item/plee/plee.hpp"
35
34
#include "engine/resource_pool.hpp"
36
35
 
37
36
#include <algorithm>
81
80
  std::sort(m_actions.begin(), m_actions.end());
82
81
 
83
82
  actions_vector::const_iterator it;
84
 
  
 
83
 
85
84
  for ( it = m_actions.begin(); it != m_actions.end(); ++it )
86
 
    m_file << it->date << " " << player_action::to_string(it->action) 
 
85
    m_file << it->date << " " << player_action::to_string(it->action)
87
86
           << " " << it->duration << '\n';
88
87
} // action_file_recorder::~action_file_recorder()
89
88
 
131
130
  progress_input_reader( elapsed_time );
132
131
 
133
132
  current_actions_map::iterator it;
134
 
  
 
133
 
135
134
  for ( it = m_current_actions.begin(); it != m_current_actions.end(); ++it )
136
135
    it->second.duration += elapsed_time;
137
136
} // action_file_recorder::progress()