import { base256ToString } from '../../../common/typecast' ; import JassWidget from './widget' ; import JassPlayer from './player' ; /**
 * type unit
 */ export default class JassUnit extends JassWidget { player : JassPlayer ; unitId : string ; x : number ; y : number ; face : number ; acquireRange = 500 ; constructor ( player , unitId , x , y , face ) { super ( ) ; this . player = player ; this . unitId = base256ToString ( unitId ) ; this . x = x ; this . y = y ; this . face = face ; } }