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)

additional parameters for CarController.poll and added CarController.getLastSignal.patch (17.0 KB) - added by Henrik Heimbuerger 16 years ago.
fix via additional poll() parameters

Download all attachments as: .zip

Change History (4)

comment:1 Changed 16 years ago by Henrik Heimbuerger

Status: newassigned

Changed 16 years ago by Henrik Heimbuerger

fix via additional poll() parameters

comment:2 Changed 16 years ago by SVN

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 Henrik Heimbuerger

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.