Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000454 [Robot Battle] system variables feature N/A 2006-03-09 04:38 2006-03-09 04:47
Reporter JEEP_ View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 1.4.05
Summary 0000454: _authorid
Description _authorid


--------------------------------------------------------------------------------

Value Type

numeric

Descriptions

Contains a robot's authorid. _authorid is set by the author command. Robots with the same author will have identical authorids. If no author was specified, _authorid is formed out of the default author's name: "unspecified". Each robot in a match is assigned an authorid that remains the same for the entire match. Authorids range from -2,147,483,646 to 2,147,483,646 inclusive. A robot's authorid will most likely change between matches.

A robot learns the ids of other robots during both collision and detection events through the _dtcid and _cldid system variables. Since ids do not change during a match this information can be used to distinguish one robot from another.
Additional Information I will implement this one anyway. If it won't get in to the game I'll add the variable whit a piece of code added to every bot:


Init{Gosub(AuthorIdSection)

...

// Added by Tournament host to make _authorid and authorid variables available

AuthorIdSection
{
    strlen(_author) // just a joke :)
    _authorid = _result
    authorid = _result
}

Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000849)
JEEP_ (reporter)
2006-03-09 04:47

_authorid


--------------------------------------------------------------------------------

Value Type

numeric

Descriptions

Contains a robot's authorid. _authorid is set by the author command. Robots with the same author will have identical authorids. If no author was specified, _authorid is formed out of the default author's name: "unspecified". Each robot in a match is assigned an authorid that remains the same for the entire match. Authorids range from -2,147,483,646 to 2,147,483,646 inclusive. A robot's authorid will most likely change between matches.

(I made a copy-paste plunder the last lines should be deleted :D )

- Issue History
Date Modified Username Field Change
2006-03-09 04:38 JEEP_ New Issue
2006-03-09 04:47 JEEP_ Note Added: 0000849


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker