Add half-done grouped region frame stuff so Ryley can take a look. This is in master because I'm an idiot.

This commit is contained in:
Major-
2015-03-22 11:07:24 +00:00
parent 30045a6f10
commit 7cf31a2888
62 changed files with 1818 additions and 576 deletions
+10 -5
View File
@@ -1,6 +1,8 @@
java_import 'org.apollo.game.model.Direction'
require 'set'
# Contains door-related constants.
module DoorConstants
# TODO: GameObjectOrientation enumeration in Apollo's core?
module Orientation
WEST = 0
@@ -9,17 +11,18 @@ module DoorConstants
SOUTH = 3
end
# The object size of a door.
# The size of a door object.
DOOR_SIZE = 1
# Door object ids that have a hinge on the left side.
LEFT_SIDE_HINGE_DOOR_IDS = [1516, 1536, 1533]
LEFT_HINGE_DOORS = Set.new [ 1516, 1536, 1533 ]
# Door object ids that have a hinge on the right side.
RIGHT_SIDE_HINGE_DOOR_IDS = [1519, 1530, 4465, 4467, 3014, 3017, 3018, 3019]
RIGHT_HINGE_DOORS = Set.new [ 1519, 1530, 4465, 4467, 3014, 3017, 3018, 3019 ]
# A map of orientations that a door will translate to when opened.
# The hash of orientations that a door will translate to when opened.
ORIENTATIONS = {
# Orientations for doors that have a hinge on the left side.
:left_side_hinge => {
Orientation::NORTH => Orientation::WEST,
@@ -27,6 +30,7 @@ module DoorConstants
Orientation::WEST => Orientation::SOUTH,
Orientation::EAST => Orientation::NORTH
},
# Orientations for doors that have a hinge on the right side.
:right_side_hinge => {
Orientation::NORTH => Orientation::EAST,
@@ -35,4 +39,5 @@ module DoorConstants
Orientation::EAST => Orientation::SOUTH
}
}
end