Add initial game code
This commit is contained in:
parent
f80a60e208
commit
1383997ebf
55 changed files with 1355 additions and 0 deletions
23
scripts/GameObjects/Ship.cs
Normal file
23
scripts/GameObjects/Ship.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
public partial class Ship : Structure
|
||||
{
|
||||
public Ship(string name, CoordinateVector position, GameObject parent, long diameter, bool isPlayer)
|
||||
: base(name, position, parent, diameter, isPlayer)
|
||||
{
|
||||
this.IsMobile = true;
|
||||
}
|
||||
|
||||
public override void Simulate()
|
||||
{
|
||||
base.Simulate();
|
||||
|
||||
if (this.IsPlayer)
|
||||
{
|
||||
SimulatePlayer();
|
||||
}
|
||||
}
|
||||
|
||||
protected void SimulatePlayer()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue