File: tentity.h

package info (click to toggle)
nighthawk 1.0-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,420 kB
  • ctags: 18,064
  • sloc: fortran: 17,597; cpp: 4,948; makefile: 87; sh: 13
file content (29 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _TENTITY_H
#define _TENTITY_H

class tentity
{
public:
  tdroid_stats stats;
  int          state;
  tfloor       *floor_ptr;
  int          ss_anim_ptr,spos_x,spos_y;
  float        pos_x,pos_y,old_pos_x,old_pos_y,pos_dx,pos_dy;
  int          anim_ptr,anim_len,anim_speed;
  tbm          *bm;
  tentity      **droids;
  tentity      *attack_droid;

  tentity(void);
  virtual ~tentity(void);
  virtual void init(
    tfloor *f,tbm *bm_p,tentity **dp,int alen,float px,float py);
  virtual void snap_shot(void);
  int colision_other(float cx,float cy);
  int colision_droids(float cx,float cy);
  virtual void colision(float cx,float cy);
  virtual void bg_calc(void);
};

#endif