~alessandro-bruni/+junk/infografica

« back to all changes in this revision

Viewing changes to Computer.h

  • Committer: Alessandro Bruni
  • Date: 2009-06-19 10:31:59 UTC
  • Revision ID: alessandro.bruni@gmail.com-20090619103159-kidi0xcc0cyu6j1v
Good, con errore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Computer.h
3
 
 *
4
 
 *  Created on: 16-apr-2009
5
 
 *      Author: alessandro
6
 
 */
7
 
 
8
1
#ifndef COMPUTER_H_
9
2
#define COMPUTER_H_
10
3
 
12
5
#include "Human.h"
13
6
 
14
7
class Computer: public Player {
15
 
private:
16
 
        Human *human;
17
 
        GLUquadric *quad;
18
 
        float time, maxTime, v[2];
19
8
public:
20
9
        Computer(Terrain *t, float speed, Human *human);
21
10
        virtual ~Computer();
22
 
        
23
 
        /// ritorna true se raggiunge human
 
11
 
24
12
        bool update(float dT);
25
13
        void display();
 
14
private:
 
15
        Human *human;
 
16
        GLUquadric *quad;
 
17
        float time, maxTime, v[2];
26
18
};
27
19
 
28
20
#endif /* COMPUTER_H_ */