FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bwapi/bwapi/BWScriptEmulator/BWScriptEmulator.h at main · bwapi/bwapi · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
bwapi
/
bwapi
Public
Notifications
You must be signed in to change notification settings
Fork
290
Star
1.7k
Code
Issues
127
Pull requests
2
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
bwapi
/
bwapi
/
BWScriptEmulator
/
BWScriptEmulator.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
36 lines (30 loc) · 1.06 KB
Breadcrumbs
bwapi
/
bwapi
/
BWScriptEmulator
/
BWScriptEmulator.h
Copy path
File metadata and controls
executable file
·
36 lines (30 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
35
36
#
pragma
once
#
include
<
BWAPI.h
>
#
include
<
windows.h
>
using
namespace
BWAPI
;
#
define
bw
BWAPI
::Broodwar
#
define
countof
(
x
) (
sizeof
(x)/
sizeof
(x[
0
]) )
extern
int
mapH, mapW;
extern
Player self;
extern
bool
farcasting;
extern
bool
isResourceClaimed[
256
];
class
BWScriptEmulator
:
public
BWAPI
::AIModule
{
public:
virtual
void
onStart
();
virtual
void
onEnd
(
bool
isWinner);
virtual
void
onFrame
();
virtual
void
onSendText
(std::string text);
virtual
void
onReceiveText
(
BWAPI
::Player player, std::string text);
virtual
void
onPlayerLeft
(
BWAPI
::Player player);
virtual
void
onNukeDetect
(
BWAPI
::Position target);
virtual
void
onUnitDiscover
(
BWAPI
::Unit unit);
virtual
void
onUnitEvade
(
BWAPI
::Unit unit);
virtual
void
onUnitShow
(
BWAPI
::Unit unit);
virtual
void
onUnitHide
(
BWAPI
::Unit unit);
virtual
void
onUnitCreate
(
BWAPI
::Unit unit);
virtual
void
onUnitDestroy
(
BWAPI
::Unit unit);
virtual
void
onUnitMorph
(
BWAPI
::Unit unit);
virtual
void
onUnitRenegade
(
BWAPI
::Unit unit);
virtual
void
onSaveGame
(std::string gameName);
};
Back
|
FazBrowse Home
|
New Git URL