File: explosion.bitmaps~

package info (click to toggle)
xevil 1.5.1e-2.2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,580 kB
  • ctags: 2,655
  • sloc: cpp: 17,863; makefile: 223; sh: 1
file content (34 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
#include "../../utils.h"
#include "../../coord.h"
#include "../../physical.h"

#define EXPLOSION_VISIBLE_RADIUS 20

// Kind of funny for Explosion, since it doesn't actually occupy area.
// Return size of visible area.
Size Explosion::get_size_max() 
{
  Size ret;
  ret.width = 2 * EXPLOSION_VISIBLE_RADIUS;
  ret.height = 2 * EXPLOSION_VISIBLE_RADIUS;
  return ret;
}



PhysicalP Explosion::create(WorldP w,LocatorP l,const Pos &pos)
{
  PhysicalP ret = new Explosion(w,l,pos);
  assert(ret);
  return ret;
}



const PhysicalContext Explosion::context = 
{/** PhysicalContext **/
  0, /* health */
  0, /* mass */
  A_Explosion, /* classId */
  "explosion", /* clas */
};