some old local changes

This commit is contained in:
i.korystin
2019-08-04 00:45:18 +03:00
förälder 70a767cf09
incheckning 1c1dd5cab6
48 ändrade filer med 1017 tillägg och 0 borttagningar

Visa fil

@@ -0,0 +1,11 @@
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
namespace coa4u
{
public abstract class Predicate
{
public abstract bool check();
}
}

Visa fil

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 97583e10785bec74c939caf211b248b8
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Visa fil

@@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
namespace coa4u
{
public class PredicateDistanceGreater : Predicate
{
protected CalcerVector first;
protected CalcerVector second;
protected float distance;
public PredicateDistanceGreater(CalcerVector one, CalcerVector other, float dist)
: base()
{
first = one;
second = other;
distance = dist;
}
public override bool check()
{
if (Vector3.Distance(first.value, second.value) > distance)
return true;
else
return false;
}
}
}

Visa fil

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 17a24fb6b2830f24fb10e079734a432f
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Visa fil

@@ -0,0 +1,29 @@
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
namespace coa4u
{
public class PredicateDistanceLess : Predicate
{
protected CalcerVector first;
protected CalcerVector second;
protected float distance;
public PredicateDistanceLess(CalcerVector one, CalcerVector other, float dist)
: base()
{
first = one;
second = other;
distance = dist;
}
public override bool check()
{
if (Vector3.Distance(first.value, second.value) <= distance)
return true;
else
return false;
}
}
}

Visa fil

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1f98bec35befcf141bfda4291e7aea41
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Visa fil

@@ -0,0 +1,14 @@
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
namespace coa4u
{
public class PredicateFalse : Predicate
{
public override bool check()
{
return false;
}
}
}

Visa fil

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c046509f9d6d55b45a9643e86a29c95c
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:

Visa fil

@@ -0,0 +1,14 @@
using UnityEngine;
using System.Collections.Generic;
using System.Collections;
namespace coa4u
{
public class PredicateTrue : Predicate
{
public override bool check()
{
return true;
}
}
}

Visa fil

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8f6a4b0a53e20504fa28937299d4df63
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData: