Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Mar 25, 2019 5:04 am

All times are UTC




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: SCPClient_CompanyValueGS
PostPosted: Wed Jan 02, 2019 3:34 am 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 248
Just decided to upload it.
http://binaries.openttd.org/bananas/ail ... S-1.tar.gz

I have no idea how to describe this thing, so here's a copy paste from the readme.

SCPClient_CompanyValueGS
========================

This library includes a Script Communication Protocol Client for AIs to be
able to play in a game running the Company Value GS game script with SCP
enabled.


-- API docs --
See main.nut of the library which have commented public members for more
details.

IsCompanyValueGSGame() - ret: bool
IsCompanyValueGSInGoalMode() - ret: bool
IsCompanyValueGSInRankingMode() - ret: bool
GetBestCompanyID() - ret: CompanyID
GetBestCompanyValue() - ret: integer (£)
GetCurrentTargetValue() - ret: integer (£)
RankingList() - ret: AIList (CompanyID, integer (£)) value sorted
GetCompanyIDRank(company_id) - par: CompanyID; ret: integer (#)
GetCompanyIDValue(company_id) - par: CompanyID; ret: integer (£)
GetCompanyIDDiffToTarget(company_id) - par: CompanyID; ret: integer (£)
GetCompanyIDDiffToBest(company_id) - par: CompanyID; ret: integer (£)
GetCompanyIDDiffToNext(company_id, next) - par: CompanyID, bool; ret: integer (£)


-- Library design idea --
The idea is that other GSes may provide SCPClient_<some other lib>, and
that AIs will want to include more than one of them. Therefore this
library does not initialize or include the SCP library. Instead you pass
an instance of it to the SCPClient constructor.

_________________
Formerly known as Samu


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.