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

« back to all changes in this revision

Viewing changes to plee-the-bear/src/ptb/item/stone/code/water_fire_stone.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
28
28
 */
29
29
#include "ptb/item/stone/water_fire_stone.hpp"
30
30
 
 
31
BASE_ITEM_IMPLEMENT( water_fire_stone, ptb )
 
32
 
31
33
/*----------------------------------------------------------------------------*/
32
34
/**
33
35
 * \brief Constructor.
34
36
 */
35
 
ptb::water_fire_stone::water_fire_stone
36
 
( bear::engine::base_item::id_type id_creator )
37
 
  : fire_stone(id_creator)
 
37
ptb::water_fire_stone::water_fire_stone()
38
38
{
39
39
  set_elasticity(1);
40
40
  m_offensive_coefficients[water_attack] = 1;
68
68
    {
69
69
      if ( ( std::abs(m_last_position.x - get_left()) <= 1 ) &&
70
70
           ( std::abs(m_last_position.y - get_bottom()) <= 1 ) )
71
 
        m_iteration_without_move++;
 
71
        ++m_iteration_without_move;
72
72
      else
73
73
        m_iteration_without_move = 0;
74
74