returns whether the rectangle contains the given rectangle
returns whether the rectangle contains a point
returns whether x is within the x-coords of the rectangle
returns whether the rectangle contains the given coord
returns whether y is within the y-coords of the rectangle
returns a new rectangle describing the intersection of the rectangle and the given one attention: returns NULL if there is no intersection
returns if the rect overlaps with the given one
attention: LUA uses a default param of "0" -> so for this and other functions we have to use "<=0" instead of "<0"
Calculated hour of the days clock (xx:00:00)
returns seconds of daylight that day
Calculated minute of the days clock (00:xx:00)
this does only work if "_daysPerWeek" is 7 or lower
returns the current day in a month (30 days/month)
returns the phase of the given time's day value is calculated dynamically, no cache is used!
Calculated second of the days clock (00:00:xx)
get the amount of days the worldTime completed till now returns completed days
returns day of the week including gameday
Summary: returns formatted value of actual worldtime
attention: LUA uses a default param of "0" -> so for this and other functions we have to use "<=0" instead of "<0"
returns the hour which is in 60 minutes (23:30 -> 0)
attention: LUA uses a default param of "0" -> so for this and other functions we have to use "<=0" instead of "<0"
1-4, Spring Summer Autumn Winter
returns the day world started running
returns the hour world started running
returns sunrise that day - in seconds
returns sunset that day - in seconds
create a time in seconds attention: month and day use real world values (12m and 365d)
create a time in seconds attention: there are only GetDaysPerYear() days per year, not 365!
material never changes from LIVE To LIVEONTAPE
special = Programme->Trailer, Ad->Infomercial
expose price of the material - eg. not-yet-aired custom productions
is the material not available at all?
3rd party material might be uncontrollable for the players
produced for TV
direct to video/dvd/br... (often B-Movies)
header of collections
header of franchises ("SAW", "Indiana Jones", ...)
header of series
eg. movies, one-time-events. Const EPISODE:int = 2
when given to pool/vendor, the broadcast limits are refreshed to max
when given to pool/vendor, the topicality is refreshed to max
give back to vendor WITHOUT SELLING it
give back to vendor AND SELL it
6
4
5
7
1
2
3
0
27
index 0 - 27
1
2
15
26
13
14
16
returns a textual version of the id
returns the group an finance type belongs to
returns a textual version of the group id
8
groups
11
12
24
25
7
22
23
17
21
10
20
18
3
5
6
9
19
4
0
Movie-Genre 1+
generic eventsEvent-Genre 200+
AC/DC-conzert
Votings, Speeches, Debates
Oscars, Golden Globes, red-carpet-events
Soccer-WM, Olympic Games
Reportage-Genre 300+
returns a textual version of the id
Shows in generalShow-Genre 100+
Music shows ("Best of the 50s")
Polit-Talks
Generic talks ("smalltalk")
Bonus bei Kindern / Jugendlichen. Malus bei Rentnern / Managern.
Nochmal deutlich verringerter Preis. Verringert die Nachteile des Filmalters. Bonus bei Jugendlichen. Malus bei allen anderen Zielgruppen. Bonus in der Nacht!
Verringert die Nachteile des Filmalters. Bonus bei Rentnern. Höhere Serientreue bei Serien.
Bonus bei Betty und bei Managern
Scripted-Shows/Series/Reportages ... Trash-TV!
these programmes are hidden from the planner selection
Genereller Quotenbonus!
a previously "live" programme is now only a "recorded live programme"
Call-In-Shows
Scripted-Shows/Series/Reportages ... Trash-TV!
Ist ne Serie! Vielleicht besser als den ProgrammeType... so kann auch ne Reportage ne Serie sein. -> SERIES bedeutet hier, dass es etwas zusammengehoeriges ist also klassische Serien, oder so "Dokusoaps"
Bonus bei Arbeitslosen und Hausfrauen. Malus bei Arbeitnehmern und Managern. Trash läuft morgens und mittags gut => Bonus!
Kleiner Bonus für Jugendliche, Arbeitnehmer, Arbeitslose, (Männer). Kleiner Malus für Kinder, Hausfrauen, Rentner, (Frauen).
returns a textual version of the id
rest of total payment paid?
bonus like CallIn-Show. review
deposit payment paid?
live = more risk, more expensive, more speed
finished shooting of this production?
send the news event to all players, regardless of their abonnement level
can the event happen again - or only once? eg. dynamically created weather news should set this flag
can the "happening" get skipped ("happens later") eg. if no player listens to the genre news like "terrorist will attack" happen in all cases => unskippable
0
without women/men
1
amount of target groups
4
returns an array of all hit indexes
3
6
9
7
2
5
8
2
3
5
6
0
4
1
2
-> 8 jobs
7 show guest or prominent show candidate
4 "moderators"
5
8
3
6
not counted. Const DIRECTOR:int = 1
does the boss has to get visited daily?
percentage of the gametime when in a room (default = 100%) use a lower value, to slow down the game then (movement + time)
maximum level a news genre abonnement can have
maximum price (profit/penalty) for a single adspot
how many contracts of the same contractBase can exist at the same time? (0 disables any limit)
how many contracts can a player collection store
how many production concepts could be "planned" at the same time (per script - for series and shows ...)
how many movies can be carried in suitcase
how many movies can a player have per filter ("genre")
is the amount of user owned scripts limited?
how many scripts can be carried in suitcase
if disabled, player is allowed to place a live programme also at later times (eg. 2 hours later)
penalty to pay if a player sends an xrated movie at the wrong time
how many contracts a player gets on a new game
how many movies does a player get on a new game
how many series does a player get on a new game
time a station needs to get constructed value in hours set to default on start (game.game.bmx prepareNewGame())
actual figure the player uses
returns the currently taken credit
returns value boss will give as credit
returns the financial of the given day if the day is in the future, a new finance object is created
attention: when used through LUA without param, the param gets "0" instead of "-1"
return CURRENT newsAbonnement
return which is the highest level for the given genre today (which was active for longer than X game minutes) if the last time a abonnement level was set was before today use the current level value
returns whether the finances allow the given transaction
override to add playername/channelname replacement
is this a custom role not used in a real world movie
name of the character
title - like "Dr." or "Prof."
when used as ad
when used as programme
override default
override default getter to make event id the reference id
override default
override
Wird bisher nur in der LUA-KI verwendet
override default
returns the price of this news price differs from the (base) price of the newsEvent
override default getter to make event id the reference id
override default
override
returns audience loss when selling a station at the given coord param is station (not coords) to avoid ambiguity of multiple stations at the same spot
returns additional audience when placing a station at the given coord
returns the maximum reach of the stations on that map
returns a station of a player at a given position in the list
returns the amount of stations a player has
return a station at the given coordinates (eg. used by network)
returns a station-object wich can be used for further information getting (share etc)
returns maximum audience a player's stations cover
get the reach of that station
get the relative reach increase of that station
refresh the station data
override default to use blocksamount of programme instead
override default getter
override default
get the title
for details check game.broadcastmaterial.base.bmx: GetTopicalityCutModifier()
override
override default getter
quality when send as programme (infomercial)
override default getter to make contract id the reference id
get the title
override
special expression defining whether a contract is available for ad vendor or not (eg. "YEAR > 2000" or "YEARSPLAYED > 2")
if set, this defines a range in which the advertisement can come up
block length
array of contract guids using this base at the moment
days to fullfill a (signed) contract
keep the profit the same for all audience requirements
flag wether price is fixed or not
is the ad broadcasting not allowed for a specific programme flag? eg. no "paid"
is the ad broadcasting not allowed for a specific programme genre? eg. no "lovestory"
is the ad broadcasting not allowed for a specific programme type? eg. no "series"
when used as programme
playerID < 0 means "get all"
=== infomercials / shopping shows === is the broadcast of an infomercial allowed?
topicality for this contract base (all adcontracts of this base share this topicality !)
is the ad broadcasting limit to a specific programme flag? eg. "xrated", "live"
is the ad broadcasting limit to a specific programme genre? eg. only "lovestory"
is the ad broadcasting limit to a specific programme type? eg. "series", "movies"
target group of the spot
minimum audience (real value calculated on sign)
minimum image base value (real value calculated on sign)
base of penalty (real value calculated on sign)
base of profit (real value calculated on sign)
are there a interest groups liking/hating broadcasts of this? eg. anti-nicotin
default is 10%the quality of the advertisement (cheap one or hollywood style?) also might affect infomercial audience rating
spots to send
TODO: store in BroadcastInformationProvider
move licence from archive to suitcase
returns the specified licence (if possible)
returns count of available programme licences in the archive
returns the specified licence (if possible)
returns amount of licences in suitcase
move licence from suitcase to archive
amounts bigger than the credit taken will repay everything amounts bigger than the owned money will fail
amounts bigger than the available credit just take all possible
returns the mood of the boss - rounded to 10% steps (makes it a bit harder for the AI) TODO: remove step rounding if players get a exact value displayed somehow
returns how much credit the boss will give (maximum minus taken credit)
returns maximum credit limit (regardless of already taken credit)
convenience access to game constants (constants)
Nur x wird unterstuetzt. Negativ: Nach links; Positiv: nach rechts
send figure to a specific room attention: the first found door is used
=== GENERIC INFORMATION RETRIEVERS === player could eg. see in interface / tooltips
return the floor of a room attention: the floor of the first found door is returned
returns how many time is gone since game/app start
BUY a programme licence with the corresponding ID Returns result-IDs: WRONGROOM / OK / NOTFOUND
SELL a programme licence with the corresponding ID Returns result-IDs: WRONGROOM / OK / NOTFOUND
GET an auction programme block at the given array position Returns: TAuctionProgrammeBlocks
untested
untested
untested
Get licence at a specific position from movie agency Returns: LuaFunctionResult (resultID, licence)
Get Amount of licences available at the movie agency Returns: amount
Get all licences from movie agency Returns: LuaFunctionResult (resultID, licences)
gets instantiated during "new"
returns the aggression level of the given terrorist group. Invalid groups return the maximum of all. Currently valid are "0" and "1"
returns the maximum level the aggression of terrorists could have
== STATIONMAP ==
returns the broadcast material (in result.data) at the given slot
counts how many times a licence is planned as programme (this includes infomercials and movies/series/programmes)
returns the broadcast material (in result.data) at the given slot
Set content of a programme slot ===== materialSource might be "null" to clear a time slot or of types: "TProgrammeLicence" or "TAdContract" returns: (TVT.)RESULT_OK, RESULT_WRONGROOM, RESULT_NOTFOUND
Set content of a programme slot ===== materialSource might be "null" to clear a time slot or of types: "TProgrammeLicence" or "TAdContract" returns: (TVT.)RESULT_OK, RESULT_WRONGROOM, RESULT_NOTFOUND
only printed if TLogger.setPrintMode(LOG_AI | LOG_DEBUG) is set
returns the first sign leading to the given room(ID)
returns the sign which originally was at the given position (might be the same if it wasnt switched)
returns the sign at the given position
switch signs on the given positions. a potential sign on slotA/floorA will get moved to slotB/floorB and vice versa. It is NOT needed to have to valid signs on there
switch two existing signs on the board
switch two existing signs on the board
convenience access to game rules (constants)
SIGN the spot with the corresponding ID Returns result-IDs: WRONGROOM / OK / NOTFOUND
GIVE BACK the spot with the corresponding ID (if not signed yet) Returns result-IDs: WRONGROOM / OK / NOTFOUND
TAKE the spot with the corresponding ID (NOT signed yet) Returns result-IDs: WRONGROOM / OK / NOTFOUND
which figure/entity to follow with the camera?
overridden
overridden
Damit man GetFinance nicht in Lua verf�gbar machen muss
overridden
make public image available for AI/Lua
remove this helper as soon as "player" class gets a single importable file