Macro total_space::reaction_alternatives[][src]

macro_rules! reaction_alternatives {
    ($action1:expr, $action2:expr $(,)?) => { ... };
    ($action1:expr, $action2:expr, $action3:expr $(,)?) => { ... };
    ($action1:expr, $action2:expr, $action3:expr, $action4:expr $(,)?) => { ... };
    ($action1:expr, $action2:expr, $action3:expr, $action4:expr, $action5:expr $(,)?) => { ... };
    ($action1:expr, $action2:expr, $action3:expr, $action4:expr, $action5:expr, $action6:expr $(,)?) => { ... };
    ($_:tt) => { ... };
}

A macro for one of several alternatives reaction.

Usage is reaction_alternatives!(action, action, ...) to specify that the agent may take one of several alternative actions when reacting to a payload.