Advertisement
shadowplaycoding

P017_Ship

Apr 29th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 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 Ship(string name, int maxHull, int maxShields)
  14.     {
  15.         this.shipName = name;
  16.         this.hullPoints = maxHull;
  17.         this.maxHull = maxHull;
  18.         this.shieldPoints = maxShields;
  19.         this.maxShields = maxShields;
  20.     }
  21.  
  22.     /*
  23.     Copyright Shadowplay Coding 2017 - see www.shadowplaycoding.com for licensing details
  24.     Removing this comment forfits any rights given to the user under licensing.
  25.     */
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement