Hostel Class

Inherits: Building

createWindow
function createWindow

generateFence
function generateFence

init
function init

isConsume
function isConsume(resName)

onPrefabChange
function onPrefabChange

onResourceChange
function onResourceChange

onStateChange
function onStateChange

onTimeout
function onTimeout

refreshAnimation
function refreshAnimation

updatePlayer
function updatePlayer(w, checkAction)