Add lots of types

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-01-24 01:43:57 +01:00
parent d7baa63e64
commit 08068f9354
4 changed files with 21 additions and 15 deletions

View File

@ -14,7 +14,8 @@ enum Action {
struct Carrier { struct Carrier {
ships: u16, ships: u16,
action_queue: VecDeque<(&star, Action)>, location: &Star
past_actions: VecDeque<(&star, Action)>, action_queue: VecDeque<(&Star, Action)>,
past_actions: VecDeque<(&Star, Action)>,
owner: &player owner: &player
} }

View File

@ -1,25 +1,26 @@
enum Race { enum Race {
Griffin, Griffin,
Catte
}
struct ResearchItem {
levels: u8,
points: u16
} }
struct Research { struct Research {
Weapons: u8, Weapons: ResearchItem
Banking: u8, Banking: ResearchItem,
Manufactoring: u8, Manufactoring: ResearchItem,
Terraforming: u8, Terraforming: ResearchItem,
Hyperspace: u8, Hyperspace: ResearchItem,
Experimentation: u8, Experimentation: ResearchItem,
Scanning: u8 Scanning: ResearchItem
}
impl Research {
fn getWeaponsLevel() {
this.Weapons.
}
} }
struct Player { struct Player {
Name: String, Name: String,
Color: (u8, u8, u8), Color: (u8, u8, u8),
Race: Race, Race: Race,
Research
} }

BIN
static/images/cybkatte.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -12,6 +12,10 @@
<h1>Welcome to Neo Poseidon</h1> <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> <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>--> <!--<p>There isn't much here, but here are some development links</p>-->
</body> </body>
</html> </html>