File: gun_edfstraight.cpp

package info (click to toggle)
rafkill 1.2.2-3.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,268 kB
  • sloc: cpp: 13,508; makefile: 64; sh: 14
file content (18 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "weaponobj.h"
#include "gun_edfstraight.h"
#include "gunobj.h"
#include "hulls/hull_weapon_s_s.h"
#include "spaceobj.h"
#include <vector>
#include "defs.h"

using namespace std;

EnemyDoubleFarStraightShooter::EnemyDoubleFarStraightShooter( int d, int al ):
WeaponObject( d, "Double Far Straight Shooter", 0, al, 0, 0 ){}

void EnemyDoubleFarStraightShooter::MakeShot(int x, int y, vector< SpaceObject * > * Ammo, const vector< SpaceObject * > * fight ) {
	setShotCounter( 45 );
	Ammo->push_back( new WeaponNode(x+15,y,0,10, new SS_WHull(), alignment ) );
	Ammo->push_back( new WeaponNode(x-15,y,0,10, new SS_WHull(), alignment ) );
}