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

« back to all changes in this revision

Viewing changes to bear-engine/core/src/visual/code/animation.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
41
41
 
42
42
/*----------------------------------------------------------------------------*/
43
43
/**
 
44
 * \brief Constructor. Create an animation with a single frame from a sprite.
 
45
 * \param spr The single frame of the animation.
 
46
 */
 
47
bear::visual::animation::animation( const sprite& spr )
 
48
  : sprite_sequence(spr), m_duration(0), m_time(0), m_time_factor(1)
 
49
{
 
50
 
 
51
} // animation::animation()
 
52
 
 
53
/*----------------------------------------------------------------------------*/
 
54
/**
44
55
 * \brief Constructor.
45
 
 * \param images Names of the frames images.
 
56
 * \param images The frames of the animation.
46
57
 * \param d The duration of the frames.
47
58
 * \pre images.size() > 0
48
59
 * \pre images.size() == d.size()
49
60
 * \post loops == 0, loop_back == false
50
 
 * \remark The sprites pointers passed as arguments will be deleted in the
51
 
 *         destructor.
52
61
 */
53
62
bear::visual::animation::animation
54
63
( const std::vector<sprite>& images, const std::vector<double>& d )