Advertisement
shadowplaycoding

P027_Ship

Mar 4th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Ship {
  5.  
  6.     public string shipName { get; set; }
  7.     public int hullPoints { get; set; }
  8.     public int shieldPoints { get; set; }
  9.  
  10.     public int maxHull { get; protected set; }
  11.     public int maxShields { get; protected set; }
  12.  
  13.     public float productionValue = 10.0f;
  14.    
  15.     public Ship(string name, int maxHull, int maxShields)
  16.     {
  17.         this.shipName = name;
  18.         this.hullPoints = maxHull;
  19.         this.maxHull = maxHull;
  20.         this.shieldPoints = maxShields;
  21.         this.maxShields = maxShields;
  22.     }
  23.  
  24.     /*
  25.     Copyright Shadowplay Coding 2017 - see www.shadowplaycoding.com for licensing details
  26.     Removing this comment forfits any rights given to the user under licensing.
  27.     */
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement