Beispiel #1
0
    void NewTarget()
    {
        pos = handler.Position();

        target.Set(
            original_pos.x + Random.Range(-1.0f, 1.0f),
            original_pos.y + Random.Range(-1.0f, 1.0f)
            );

        target *= range;
    }
 public bool CanSeeEntity(entity_handler hdl)
 {
     return(CanSee(hdl.Position()));
 }
 public bool CanAttackEntity(entity_handler hdl)
 {
     return(CanAttackPoint(hdl.Position()));
 }