Opened 16 years ago
Closed 16 years ago
#154 closed enhancement (fixed)
Actually pass all the information to the driving agents
Reported by: | Henrik Heimbuerger | Owned by: | Henrik Heimbuerger |
---|---|---|---|
Priority: | critical | Milestone: | MS2: Driving agent support |
Component: | controller | Version: | pre-1.0 |
Keywords: | agent, poll | Cc: |
Description
The driving agents currently get no parameters on their poll() function, pass the actual values in.
Attachments (1)
Change History (4)
comment:1 Changed 16 years ago by
Status: | new → assigned |
---|
Changed 16 years ago by
comment:2 Changed 16 years ago by
New commit by hheimbuerger (revision [499]):
[Partial fix for ticket #154] The driving agents now receive information about them, their competitors and the track.
This was carried out by adding two parameters to the activate() method of the CarController, the track and the list of players.
Additionally, a getLastSignal() method was introduced on the CarController. This is used by the TrackWidget to draw the thrust gauges and may actually be called before the first poll() (due to the way the race start initialization phase is performed) but never before activate(). The default implementation just invokes poll().
Using the now available data, a new driving agent has been introduced that cares a little more about the track he's driving on.
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
fix via additional poll() parameters