source: abuse/trunk/src/tester.cpp @ 97

Last change on this file since 97 was 56, checked in by Sam Hocevar, 12 years ago
  • Add licensing terms to most C / C++ files (Ref #5).
File size: 782 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#include "config.h"
11
12#include "items.hpp"
13
14backtile::backtile(spec_entry *e, FILE *fp)
15{
16  im=new image(e,fp);
17  next=read_short(fp);
18}
19
20foretile::foretile(spec_entry *e, FILE *fp)
21{
22  unsigned char d[2],i;
23  im=new image(e,fp);
24  next=read_short(fp);
25  fread(&damage,1,1,fp);
26  points=new point_list(fp);
27}
28
29figure::figure(spec_entry *e, FILE *fp)
30{
31  im=new image(e,fp);
32  fread(&hit_damage,1,1,fp);
33  fread(&xcfg,1,1,fp);
34 
35  touch=new point_list(fp);
36  damage=new point_list(fp);
37  hit=new point_list(fp);
38}
39
Note: See TracBrowser for help on using the repository browser.