~ubuntu-branches/ubuntu/feisty/xbill/feisty

« back to all changes in this revision

Viewing changes to Spark.h

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2004-09-07 09:52:14 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040907095214-d0m46ojc8f7upuqm
Tags: 2.1-4
maintainer upload of NMU - many thanks Tollef (closes: #268885) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef SPARK_H
2
2
#define SPARK_H
3
3
 
4
 
#include "Picture.h"
5
 
 
6
 
class Spark {
7
 
public:
8
 
        Picture pictures[2];
9
 
        int width, height;
10
 
        void draw();
11
 
        void load_pix();
12
 
        static const int speed = 5;
13
 
        int delay(unsigned int lev);
14
 
};
 
4
#define SPARK_SPEED 4
 
5
#define SPARK_DELAY(level) (MAX(20 - (level), 0))
 
6
 
 
7
void
 
8
Spark_load_pix(void);
 
9
 
 
10
int 
 
11
Spark_width(void);
 
12
 
 
13
int
 
14
Spark_height(void);
 
15
 
 
16
void
 
17
Spark_draw(int x, int y, int index);
 
18
 
15
19
 
16
20
#endif