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

Last change on this file since 555 was 555, checked in by Sam Hocevar, 11 years ago

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

File size: 888 bytes
RevLine 
[56]1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
[494]4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
[56]5 *
6 *  This software was released into the Public Domain. As with most public
[555]7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
[56]9 */
10
[555]11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
[56]14
[481]15#include "items.h"
[2]16
17backtile::backtile(spec_entry *e, FILE *fp)
18{
19  im=new image(e,fp);
20  next=read_short(fp);
21}
22
23foretile::foretile(spec_entry *e, FILE *fp)
24{
[124]25  unsigned char d[2],i;
[2]26  im=new image(e,fp);
27  next=read_short(fp);
28  fread(&damage,1,1,fp);
29  points=new point_list(fp);
30}
31
32figure::figure(spec_entry *e, FILE *fp)
33{
34  im=new image(e,fp);
35  fread(&hit_damage,1,1,fp);
36  fread(&xcfg,1,1,fp);
[124]37
38  touch=new point_list(fp);
39  damage=new point_list(fp);
40  hit=new point_list(fp);
[2]41}
42
Note: See TracBrowser for help on using the repository browser.