Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Robocode by
source/StartUp.cpp@58:1a395b6928ee, 2017-04-18 (annotated)
- Committer:
- cittecla
- Date:
- Tue Apr 18 15:38:15 2017 +0000
- Revision:
- 58:1a395b6928ee
- Parent:
- 38:3526c36e4c73
- Child:
- 61:b57577b0072f
update start_up
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| cittecla | 38:3526c36e4c73 | 1 | #include "StartUp.h" |
| cittecla | 38:3526c36e4c73 | 2 | |
| cittecla | 38:3526c36e4c73 | 3 | |
| cittecla | 58:1a395b6928ee | 4 | int idel() |
| cittecla | 58:1a395b6928ee | 5 | { |
| cittecla | 58:1a395b6928ee | 6 | if(get_user()) { |
| cittecla | 58:1a395b6928ee | 7 | return 15; |
| cittecla | 58:1a395b6928ee | 8 | } else { |
| cittecla | 58:1a395b6928ee | 9 | return 10; |
| cittecla | 38:3526c36e4c73 | 10 | } |
| cittecla | 58:1a395b6928ee | 11 | } |
| cittecla | 58:1a395b6928ee | 12 | |
| cittecla | 58:1a395b6928ee | 13 | int idel2() |
| cittecla | 58:1a395b6928ee | 14 | { |
| cittecla | 58:1a395b6928ee | 15 | if(get_user()) { |
| cittecla | 58:1a395b6928ee | 16 | return 25; |
| cittecla | 58:1a395b6928ee | 17 | } else { |
| cittecla | 58:1a395b6928ee | 18 | return 11; |
| cittecla | 38:3526c36e4c73 | 19 | } |
| cittecla | 58:1a395b6928ee | 20 | } |
| cittecla | 38:3526c36e4c73 | 21 | |
| cittecla | 58:1a395b6928ee | 22 | |
| cittecla | 58:1a395b6928ee | 23 | int initialisation() |
| cittecla | 58:1a395b6928ee | 24 | { |
| cittecla | 58:1a395b6928ee | 25 | Robot_init_all(); |
| cittecla | 58:1a395b6928ee | 26 | return 16; |
| cittecla | 58:1a395b6928ee | 27 | } |
| cittecla | 58:1a395b6928ee | 28 | |
| cittecla | 58:1a395b6928ee | 29 | |
| cittecla | 58:1a395b6928ee | 30 | int inital_positioning() |
| cittecla | 58:1a395b6928ee | 31 | { |
| cittecla | 58:1a395b6928ee | 32 | |
| cittecla | 58:1a395b6928ee | 33 | return 11; |
| cittecla | 58:1a395b6928ee | 34 | } |
| cittecla | 58:1a395b6928ee | 35 | |
| cittecla | 58:1a395b6928ee | 36 | |
| cittecla | 58:1a395b6928ee | 37 | int initial_turn() |
| cittecla | 58:1a395b6928ee | 38 | { |
| cittecla | 58:1a395b6928ee | 39 | |
| cittecla | 38:3526c36e4c73 | 40 | return 0; |
| cittecla | 58:1a395b6928ee | 41 | } |
