~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/projectile_enemy.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
73
73
{
74
74
  bool result = true;
75
75
 
76
 
  if ( name == "projectile_model" )
 
76
  if ( name == "projectile_enemy.projectile_model" )
77
77
    m_projectile_model = value;
78
78
  else
79
79
    result = super::set_string_field(name,value);
96
96
 */
97
97
bool ptb::projectile_enemy::is_valid() const
98
98
{
99
 
  return (m_projectile_model != "" )&& super::is_valid();
 
99
  return (!m_projectile_model.empty() ) && super::is_valid();
100
100
} // projectile_enemy::is_valid()
101
101
 
102
102
/*---------------------------------------------------------------------------*/
135
135
/*----------------------------------------------------------------------------*/
136
136
/**
137
137
 * \brief The item has attacked.
 
138
 * \param other The monster that is attacked.
138
139
 */
139
 
void ptb::projectile_enemy::has_attacked()
 
140
void ptb::projectile_enemy::has_attacked(const monster& other)
140
141
{
141
142
  m_is_dead = true;
142
143
} // projectile_enemy::has_attacked()
147
148
 */
148
149
void ptb::projectile_enemy::leaves_active_region()
149
150
{
 
151
  super::leaves_active_region();
 
152
 
150
153
  kill();
151
154
} // projectile_enemy::leaves_active_region()