Neo-Poseidon/game/carrier.rs

20 lines
327 B
Rust

enum Order {
NOTHING,
GARRISON(u16),
DROP_ALL,
DROP(u16),
DROP_ALL_BUT(u16),
COLLECT_ALL,
COLLECT(u16),
COLLECT_ALL_BUT(u16),
LOOP
}
pub struct Carrier {
owner: &Player,
name: String,
ships: u16,
location: (u16, u16),
orders: Vec<(&Star, Order)>,
order_pointer: u8
}