Added a configuration file for seting up parameters
This commit is contained in:
13
FakeMon/src/fmon/package.scala
Normal file
13
FakeMon/src/fmon/package.scala
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
import scala.language.implicitConversions
|
||||
import scala.util.Random
|
||||
|
||||
import fmon.stat._
|
||||
import fmon.util.{Dice, IntFraction}
|
||||
|
||||
package object fmon {
|
||||
|
||||
implicit def rngDice(rng : Random) = new Dice(rng)
|
||||
implicit def int2Helper(x : Int) = new IntFraction(x)
|
||||
implicit def ptrToMonster(ptr : MonsterPtr) : Monster = ptr.mon
|
||||
}
|
||||
Reference in New Issue
Block a user