Neo-Poseidon/game/carrier.rs

20 lines
327 B
Rust
Raw Normal View History

2019-05-08 01:36:04 +02:00
enum Order {
2019-05-08 01:42:58 +02:00
NOTHING,
GARRISON(u16),
DROP_ALL,
DROP(u16),
DROP_ALL_BUT(u16),
COLLECT_ALL,
COLLECT(u16),
COLLECT_ALL_BUT(u16),
LOOP
2019-05-08 01:36:04 +02:00
}
pub struct Carrier {
2019-05-08 01:42:58 +02:00
owner: &Player,
2019-05-08 01:36:04 +02:00
name: String,
ships: u16,
location: (u16, u16),
2019-05-08 01:42:58 +02:00
orders: Vec<(&Star, Order)>,
order_pointer: u8
2019-05-08 01:36:04 +02:00
}