RuneHive-Game
Loading...
Searching...
No Matches
ObstacleBuilder.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.agility.obstacle;
2
3import com.runehive.game.world.position.Position;
4
5public class ObstacleBuilder {
6 public final ObstacleType type;
7 public final Position objectPosition;
8 public final Position start;
9 public final Position end;
10 public int level;
11 public float experience;
12 public int ordinal;
13 public Obstacle next;
14
16 this.objectPosition = objectPosition;
17 this.type = type;
18 this.end = end;
19 this.start = start;
20 level = 1;
21 experience = 0;
22 ordinal = -1;
23 }
24
26 this.level = level;
27 return this;
28 }
29
31 this.experience = experience;
32 return this;
33 }
34
36 this.ordinal = ordinal;
37 return this;
38 }
39
41 this.next = next;
42 return this;
43 }
44
45 public Obstacle build() {
46 return new Obstacle(this);
47 }
48}
ObstacleBuilder(ObstacleType type, Position objectPosition, Position start, Position end)
Represents a single tile on the game world.
Definition Position.java:14