Esempio n. 1
0
        public Tile(int x, int y, int z)
        {
            occupant = null;
            location_x = x;
            location_y = y;
            location_z = z;

            terrain = Terrain.GRASSLAND;

            tile_id = -1;
        }
Esempio n. 2
0
        public int tile_id; //TODO: Ensure this isn't null ever

        #endregion Fields

        #region Constructors

        public Tile(int x, int y, int z, Terrain newTerrain)
        {
            occupant = null;
            location_x = x;
            location_y = y;
            location_z = z;

            terrain = newTerrain;

            tile_id = -1;
        }
Esempio n. 3
0
        static int id_pool = 0; //Unique id for every unit

        #endregion Fields

        #region Methods

        public static Unit createTestUnit()
        {
            Unit output = new Unit() ;
            Action baseAttack = Action_Builder.createTestAction();
            Move baseMove = Move_Builder.createTestMove();

            output.addAction(baseAttack);
            output.addMove(baseMove);

            output.id = id_pool;
            id_pool++;

            return output;
        }