VZ/Assets/Scripts/Unit.cs
Samuel 5837a7f2c9 - Added Tag manager
- Added Class ZombieUnit (extends the Unit class)
- Added class VampireUnit (extends the Unit class)
2015-08-11 12:09:17 -04:00

56 lines
987 B
C#

using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using JetBrains.Annotations;
public class Unit : MonoBehaviour
{
private LinkedList<Command> commandList;
// Use this for initialization
void Start ()
{
// initialize default hp
// initialize default attack
// initialize default team
// initialize default specie
}
// Update is called once per frame
void Update ()
{
//
}
/// <summary>
/// Add a command at the end of the list
/// </summary>
/// <param name="c">The command to add</param>
public void addCommand(Command c)
{
this.commandList.AddLast(c);
}
public void executeCommand()
{
}
#region Unit properties
public int HP { get; set; }
public int Attack { get; set; }
//public bool isAlly { get; set; }
//public bool isHuman { get; set; }
public bool isDead { get; set; }
public String Tag
{
get { return this.gameObject.tag; }
set { gameObject.tag = value; }
}
#endregion
}