from pandac.PandaModules import *
import random
OFF = 0
FLYING = 1
LANDED = 2
states = {OFF: 'off',
 FLYING: 'Flying',
 LANDED: 'Landed'}
NUM_BUTTERFLIES = (6, 36, 5)
NUM_BUTTERFLY_AREAS = (4, 1, 4)
BUTTERFLY_SPEED = 2.0
BUTTERFLY_HEIGHT = (2.2, 3.2, 2.2)
BUTTERFLY_TAKEOFF = (1.4, 1.8, 1.4)
BUTTERFLY_LANDING = (1.4, 1.8, 1.4)
MAX_LANDED_TIME = 20.0
TTC = 0
DG = 1
ESTATE = 2
ButterflyPoints = (((Point3(84.0, -116.0, 3.5),
   Point3(95.0, -144.0, 2.6),
   Point3(94.0, -145.0, 2.6),
   Point3(95.0, -149.0, 2.6),
   Point3(50.0, -155.0, 2.6),
   Point3(51.0, -147.0, 2.6),
   Point3(51.0, -145.0, 2.6),
   Point3(14.0, -99.0, 3.1),
   Point3(17.0, -94.0, 3.1),
   Point3(50.0, -79.0, 3.1),
   Point3(47.0, -86.0, 3.1),
   Point3(54.0, -127.0, 2.6),
   Point3(84.0, -113.0, 3.8)),
  (Point3(-57.0, -70.0, 0.1),
   Point3(-55.0, -68.0, 0.1),
   Point3(-90.0, -77.0, 0.6),
   Point3(-90.0, -72.0, 0.1),
   Point3(-133.0, -50.0, 0.6),
   Point3(-129.0, -48.0, 0.6),
   Point3(-127.0, -25.0, 0.1),
   Point3(-125.0, -22.0, 0.1),
   Point3(-123.0, -22.0, 0.1),
   Point3(-103.0, -10.0, -3.0),
   Point3(-104.0, -13.0, -2.5),
   Point3(-100.0, -28.0, -2.7),
   Point3(-89.0, -41.0, -4.4),
   Point3(-58.0, -34.0, -4.1),
   Point3(-69.0, -18.0, -1.9),
   Point3(-65.0, -19.0, -1.9),
   Point3(-65.0, -16.0, -1.9),
   Point3(6.0, -49.0, -0.1),
   Point3(2.6, -47.0, 0.1),
   Point3(-33.6, -43.0, 0.0)),
  (Point3(-53.0, 3.0, -1.8),
   Point3(-58.0, 2.0, -1.8),
   Point3(-58.0, 2.0, -1.8),
   Point3(-76.0, 2.0, -1.8),
   Point3(-69.0, 11.0, -1.8),
   Point3(-100.0, 14.0, -4.1),
   Point3(-104.0, 17.0, -2.6),
   Point3(-125.0, 34.0, 0.1),
   Point3(-124.0, 30.0, 0.1),
   Point3(-113.0, 73.0, 0.6),
   Point3(-33.0, 78.0, 0.1),
   Point3(-65.0, 48.0, -3.0),
   Point3(-51.0, 33.0, -3.0),
   Point3(-30.0, 71.0, 0.1),
   Point3(-26.0, 71.0, 0.1),
   Point3(-23.0, 69.0, 0.1),
   Point3(-23.0, 64.0, 0.1),
   Point3(-5.0, 42.0, 0.1),
   Point3(-22.0, 22.0, 0.1),
   Point3(-27.0, 22.0, 0.1)),
  (Point3(14.0, 93.0, 3.1),
   Point3(17.0, 93.0, 3.1),
   Point3(20.0, 122.0, 2.6),
   Point3(21.0, 127.0, 2.6),