object SentientUtils
Utils for sentient system and rules
- Alphabetic
- By Inheritance
- SentientUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- implicit class PimpedList[A] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
computeSteer(actualVelocity: Vector, desiredVelocity: Vector): Vector
compute the acceleration to apply to the actual velocity and obtain the desired velocity, then limit it
compute the acceleration to apply to the actual velocity and obtain the desired velocity, then limit it
- actualVelocity
actual velocity
- desiredVelocity
desired velocity
- returns
the limited acceleration
-
def
computeUnlimitedSteer(actualVelocity: Vector, desiredVelocity: Vector): Vector
compute the acceleration to apply to the actual velocity and obtain the desired velocity
compute the acceleration to apply to the actual velocity and obtain the desired velocity
- actualVelocity
actual velocity
- desiredVelocity
desired velocity
- returns
the acceleration
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDesiredSeparation(actualVelocity: Vector): Double
Return the desired acceleration from a sentient to other enemies
Return the desired acceleration from a sentient to other enemies
- actualVelocity
sentient's velocity
- returns
desired separation
-
def
hasLostRadiusBehaviour(sentient: SentientProperty): Boolean
check which behaviour have the sentient
check which behaviour have the sentient
- sentient
sentient to check
- returns
true if the behaviour is lost radius, false otherwise
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )