source: abuse/trunk/src/points.hpp @ 97

Last change on this file since 97 was 57, checked in by Sam Hocevar, 11 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 761 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#ifndef __POINTS_HPP_
11#define __POINTS_HPP_
12#include <stdio.h>
13#include <stdlib.h>
14#include "jmalloc.hpp"
15#include "specs.hpp"
16
17class point_list
18{
19public :
20  unsigned char tot;
21  unsigned char *data;
22  point_list(unsigned char how_many, unsigned char *Data);
23  point_list() { tot=0; data=NULL; }
24  point_list(bFILE *fp);
25  void save(bFILE *fp);
26  long size() { return 1+2*tot; }
27  point_list *copy() { return new point_list(tot,data); }
28  ~point_list() { if (tot) { jfree(data); } }
29} ;
30
31#endif
32
33
Note: See TracBrowser for help on using the repository browser.