|
Last change
on this file since 12181 was
12177,
checked in by siramesh, 7 years ago
|
|
Super Orxo Bros Final (Sidharth Ramesh, Nisa Balta, Jeff Ren)
|
|
File size:
398 bytes
|
| Line | |
|---|
| 1 | function handleDefArg(argument, defaultValue) |
|---|
| 2 | if argument == nil then |
|---|
| 3 | return defaultValue |
|---|
| 4 | else |
|---|
| 5 | return argument |
|---|
| 6 | end |
|---|
| 7 | end |
|---|
| 8 | |
|---|
| 9 | function table.findIndex(table, value) |
|---|
| 10 | for i, v in ipairs(table) do |
|---|
| 11 | if v == value then |
|---|
| 12 | return i |
|---|
| 13 | end |
|---|
| 14 | end |
|---|
| 15 | return 0 |
|---|
| 16 | end |
|---|
| 17 | |
|---|
| 18 | -- Shortcuts for tribool |
|---|
| 19 | tribool = orxonox.tribool |
|---|
| 20 | dontcare = orxonox.dontcare_keyword_t() |
|---|
Note: See
TracBrowser
for help on using the repository browser.