AdvancedRobot GetEventPriority Method Robocode Robot API for .NET
Returns the current priority of a class of events. An event priority is a value from 0 - 99. The higher value, the higher priority.

Examples

int myHitRobotPriority = GetEventPriority("HitRobotEvent");

The default priorities are, from highest to lowest:
BattleEndedEvent:     100 (reserved)
                WinEvent:             100 (reserved)
                SkippedTurnEvent:     100 (reserved)
                StatusEvent:           99
                Key and mouse events:  98
                CustomEvent:           80 (default value)
                MessageEvent:          75
                RobotDeathEvent:       70
                BulletMissedEvent:     60
                BulletHitBulletEvent:  55
                BulletHitEvent:        50
                HitByBulletEvent:      40
                HitWallEvent:          30
                HitRobotEvent:         20
                ScannedRobotEvent:     10
                PaintEvent:             5
                DeathEvent:            -1 (reserved)
              

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

public int GetEventPriority(
	string eventClass
)

Parameters

eventClass
Type: OnlineSystem String
the name of the event class (string)

Return Value

Type: OnlineInt32
See Also