mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
changed pathfinder(hopefully one last time)
This commit is contained in:
parent
8c12e0de26
commit
e11c40f645
28 changed files with 401 additions and 416 deletions
|
|
@ -1,14 +1,10 @@
|
|||
<?php
|
||||
|
||||
abstract class Living extends Entity implements Damageable{
|
||||
public $pathFinder, $pathFound, $path, $pathNavigator, $target, $ai;
|
||||
public $target, $ai;
|
||||
public function __construct(Level $level, $eid, $class, $type = 0, $data = array()){
|
||||
$this->pathFinder = new AStar($this);
|
||||
$this->pathFound = false;
|
||||
$this->target = false;
|
||||
$this->path = null;
|
||||
$this->ai = new EntityAI($this);
|
||||
$this->pathNavigator = new PathNavigator($this);
|
||||
parent::__construct($level, $eid, $class, $type, $data);
|
||||
$this->canBeAttacked = true;
|
||||
$this->hasGravity = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue