~ubuntu-branches/ubuntu/trusty/plee-the-bear/trusty-proposed

« back to all changes in this revision

Viewing changes to bear-engine/core/src/engine/code/level_globals.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
  Bear Engine
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
345
345
    load_sound(name);
346
346
 
347
347
  return m_sound_manager.new_sample(name);
348
 
} // level_globals::get_sound()
 
348
} // level_globals::new_sample()
 
349
 
 
350
/*----------------------------------------------------------------------------*/
 
351
/**
 
352
 * \brief Create a copy of a sample.
 
353
 * \param s The sample to copy.
 
354
 */
 
355
bear::audio::sample*
 
356
bear::engine::level_globals::new_sample( const audio::sample& s )
 
357
{
 
358
  return m_sound_manager.new_sample(s);
 
359
} // level_globals::new_sample()
349
360
 
350
361
/*----------------------------------------------------------------------------*/
351
362
/**
626
637
 * \param msg The message to send to this item.
627
638
 */
628
639
bool bear::engine::level_globals::send_message
629
 
( const std::string& target, communication::message& msg )
 
640
( const std::string& target, communication::message& msg ) const
630
641
{
631
642
  return m_post_office.send_message( target, msg );
632
643
} // level_globals::send_message()