My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
#pragma once

#include <BWAPI/BulletType.h>
#include <BWAPI/Position.h>

namespace BWAPI
{
class Player;
class Unit;
class Bullet
{
protected:
virtual ~Bullet() {};
public:
virtual int getID() const = 0;
virtual Player* getPlayer() const = 0;
virtual BulletType getType() const = 0;
virtual Unit* getSource() const = 0;
virtual Position getPosition() const = 0;
virtual double getAngle() const = 0;
virtual double getVelocityX() const = 0;
virtual double getVelocityY() const = 0;
virtual Unit* getTarget() const = 0;
virtual Position getTargetPosition() const = 0;
virtual int getRemoveTimer() const = 0;
virtual bool exists() const = 0;
virtual bool isVisible() const = 0;
virtual bool isVisible(Player* player) const = 0;
};
}

Change log

r3804 by deathkni...@aim.com on Aug 3, 2011   Diff
Fixed several(many) memory leaks in BWAPI.
Added protected virtual destructors to all
interface classes (prevents users from
deleting them).
Region data is now passed to the BWAPI
client. (The client implementation has not
been tested)
Go to: 
Sign in to write a code review

Older revisions

r2785 by lowerlogic on Oct 15, 2010   Diff
moved bwapi_broken to bwapi
r2782 by lowerlogic on Oct 15, 2010   Diff
moving bwapi to bwapi_broken
r2365 by lowerlogic on Jun 7, 2010   Diff
simplified Bullet.h a bit
All revisions of this file

File info

Size: 832 bytes, 30 lines
Powered by Google Project Hosting