Class Unit

java.lang.Object
com.c1games.terminal.algo.map.Unit

public class Unit
extends java.lang.Object
A unit which is at a certain position on the map.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    float health  
    java.lang.String id  
    PlayerId owner  
    boolean removing  
    UnitType type  
    Config.UnitInformation unitInformation  
    boolean upgraded  
  • Constructor Summary

    Constructors 
    Constructor Description
    Unit​(UnitType type, float health, java.lang.String id, PlayerId owner, Config config)  
  • Method Summary

    Modifier and Type Method Description
    void upgrade()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait