source: trunk/mrpigeon/enemy.cpp @ 1310

Last change on this file since 1310 was 1310, checked in by sam, 8 years ago

core: tick methods now use seconds, like any sane system.

  • Property svn:keywords set to Id
File size: 576 bytes
Line 
1//
2// MrPigeon
3//
4// Copyright: (c) 2012 Various People
5//
6
7#if defined HAVE_CONFIG_H
8#   include "config.h"
9#endif
10
11#if USE_SDL && defined __APPLE__
12#   include <SDL_main.h>
13#endif
14
15#include "core.h"
16#include "debug/fps.h"
17
18using namespace std;
19using namespace lol;
20
21#include "mrpigeon.h"
22#include "enemy.h"
23
24Enemy::Enemy(MrPigeon *in_game) :
25    game(in_game)
26{
27}
28
29void Enemy::TickGame(float seconds)
30{
31    WorldEntity::TickGame(seconds);
32
33    seconds *= game->GetSpeed();
34}
35
36void Enemy::TickDraw(float seconds)
37{
38    WorldEntity::TickDraw(seconds);
39}
40
41Enemy::~Enemy()
42{
43}
44
Note: See TracBrowser for help on using the repository browser.