(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See: http://wiki.openttd.org/wiki/index.php/AI:Main_Page With many thanks to: - glx and Rubidium for their syncing, feedback and hard work - Yexo for his feedback, patches, and AIs which tested the system very deep - Morloth for his feedback and patches - TJIP for hosting a challenge which kept NoAI on track - All AI authors for testing our AI API, and all other people who helped in one way or another -Remove: all old AIs and their cheats/hacks
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "autoreplace_func.h"
|
||||
#include "autoreplace_gui.h"
|
||||
#include "gfx_func.h"
|
||||
#include "ai/ai.hpp"
|
||||
#include "company_func.h"
|
||||
#include "settings_type.h"
|
||||
#include "order_func.h"
|
||||
@@ -1338,6 +1339,8 @@ static void CrashAirplane(Vehicle *v)
|
||||
newsitem = STR_A034_PLANE_CRASH_DIE_IN_FIREBALL;
|
||||
}
|
||||
|
||||
AI::NewEvent(v->owner, new AIEventVehicleCrashed(v->index, v->tile));
|
||||
|
||||
AddNewsItem(newsitem,
|
||||
NS_ACCIDENT_VEHICLE,
|
||||
v->index,
|
||||
@@ -1388,6 +1391,7 @@ static void AircraftEntersTerminal(Vehicle *v)
|
||||
v->index,
|
||||
st->index
|
||||
);
|
||||
AI::NewEvent(v->owner, new AIEventStationFirstVehicle(st->index, v->index));
|
||||
}
|
||||
|
||||
v->BeginLoading();
|
||||
|
Reference in New Issue
Block a user