This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Neo-Poseidon/Carrier.rs
T
Daniel Løvbrøtte Olsen d7baa63e64 Add some types
2019-01-23 21:04:52 +01:00

20 lines
347 B
Rust

use std::collections::VecDeque;
enum Action {
NOTHING,
GARRISON(u16),
DROP_ALL,
DROP(u16),
DROP_ALL_BUT(u16),
COLLECT_ALL,
COLLECT(u16),
COLLECT_ALL_BUT(u16),
LOOP
}
struct Carrier {
ships: u16,
action_queue: VecDeque<(&star, Action)>,
past_actions: VecDeque<(&star, Action)>,
owner: &player
}