source: abuse/trunk/src/points.h @ 682

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

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

  • Property svn:keywords set to Id
File size: 815 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef __POINTS_HPP_
12#define __POINTS_HPP_
13
14#include <stdio.h>
15#include <stdlib.h>
16
17#include "specs.h"
18
19class point_list
20{
21public :
22  unsigned char tot;
23  unsigned char *data;
24  point_list(unsigned char how_many, unsigned char *Data);
25  point_list() { tot=0; data=NULL; }
26  point_list(bFILE *fp);
27  void save(bFILE *fp);
28  long size() { return 1+2*tot; }
29  point_list *copy() { return new point_list(tot,data); }
30  ~point_list() { if (tot) { free(data); } }
31} ;
32
33#endif
34
35
Note: See TracBrowser for help on using the repository browser.