Add lots of types
This commit is contained in:
parent
d7baa63e64
commit
08068f9354
|
@ -14,7 +14,8 @@ enum Action {
|
|||
|
||||
struct Carrier {
|
||||
ships: u16,
|
||||
action_queue: VecDeque<(&star, Action)>,
|
||||
past_actions: VecDeque<(&star, Action)>,
|
||||
location: &Star
|
||||
action_queue: VecDeque<(&Star, Action)>,
|
||||
past_actions: VecDeque<(&Star, Action)>,
|
||||
owner: &player
|
||||
}
|
27
Player.rs
27
Player.rs
|
@ -1,25 +1,26 @@
|
|||
enum Race {
|
||||
Griffin,
|
||||
Catte
|
||||
}
|
||||
|
||||
struct ResearchItem {
|
||||
levels: u8,
|
||||
points: u16
|
||||
}
|
||||
|
||||
struct Research {
|
||||
Weapons: u8,
|
||||
Banking: u8,
|
||||
Manufactoring: u8,
|
||||
Terraforming: u8,
|
||||
Hyperspace: u8,
|
||||
Experimentation: u8,
|
||||
Scanning: u8
|
||||
}
|
||||
|
||||
impl Research {
|
||||
fn getWeaponsLevel() {
|
||||
this.Weapons.
|
||||
}
|
||||
Weapons: ResearchItem
|
||||
Banking: ResearchItem,
|
||||
Manufactoring: ResearchItem,
|
||||
Terraforming: ResearchItem,
|
||||
Hyperspace: ResearchItem,
|
||||
Experimentation: ResearchItem,
|
||||
Scanning: ResearchItem
|
||||
}
|
||||
|
||||
struct Player {
|
||||
Name: String,
|
||||
Color: (u8, u8, u8),
|
||||
Race: Race,
|
||||
Research
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
|
@ -12,6 +12,10 @@
|
|||
<h1>Welcome to Neo Poseidon</h1>
|
||||
<p>This is an open source game inspired by Neptune's Pride. An extremely slow paced real time strategy game</p>
|
||||
|
||||
<h2>Races:</h2>
|
||||
<h3>The Catte</h3>
|
||||
<img src="images/cybkatte.png">
|
||||
|
||||
<!--<p>There isn't much here, but here are some development links</p>-->
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue